From 674cc8f5b0012c7b6a72cafd669b477abedbd783 Mon Sep 17 00:00:00 2001 From: clydee <641365724@qq.com> Date: Thu, 22 Aug 2024 18:55:17 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E2=80=9DRangePicker?= =?UTF-8?q?=E7=BB=84=E4=BB=B6=E5=9C=A8onCalendarChange=E6=96=B9=E6=B3=95?= =?UTF-8?q?=E4=B8=AD=E8=B0=83=E7=94=A8form.setFieldsValue=E4=BC=9A?= =?UTF-8?q?=E5=AF=BC=E8=87=B4=E6=97=B6=E9=97=B4=E4=B8=8D=E5=8F=AF=E9=80=89?= =?UTF-8?q?=E6=8B=A9=E2=80=9C=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Field.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Field.tsx b/src/Field.tsx index 964fff12..e2133305 100644 --- a/src/Field.tsx +++ b/src/Field.tsx @@ -46,7 +46,8 @@ function requireUpdate( if (typeof shouldUpdate === 'function') { return shouldUpdate(prev, next, 'source' in info ? { source: info.source } : {}); } - return prevValue !== nextValue; + // return prevValue !== nextValue; + return !isEqual(prev, next) } // eslint-disable-next-line @typescript-eslint/consistent-indexed-object-style