From 8ca1fc2d2b3add223c5bce6f01673b41d1a2d1bb Mon Sep 17 00:00:00 2001 From: HQ-Lin Date: Thu, 26 Oct 2023 11:24:44 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=20setFields=20?= =?UTF-8?q?=E8=A7=A6=E5=8F=91=20onValuesChange=20=E5=AF=BC=E8=87=B4?= =?UTF-8?q?=E7=9A=84=E6=AD=BB=E5=BE=AA=E7=8E=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/form/FormItem.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/form/FormItem.tsx b/src/form/FormItem.tsx index 6468cc3c22..bc4fc7338b 100644 --- a/src/form/FormItem.tsx +++ b/src/form/FormItem.tsx @@ -439,7 +439,7 @@ const FormItem = forwardRef((originalProps, ref if (!shouldValidate.current) return; // value change event - if (typeof name !== 'undefined') { + if (typeof name !== 'undefined' && shouldEmitChangeRef.current) { if (formListName) { // 整理 formItem 的值 const formListValue = merge([], calcFieldValue(name, formValue));