From 82c05a94a71e097557d11d62ad61bfbb261a9b77 Mon Sep 17 00:00:00 2001 From: "Alex.huxiyang" <1872591453@qq.com> Date: Tue, 2 Jul 2024 11:25:30 +0800 Subject: [PATCH] =?UTF-8?q?fix(form):=20setFields=E6=9C=AA=E8=A7=A6?= =?UTF-8?q?=E5=8F=91=E6=A0=A1=E9=AA=8C=20(#2400)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/packages/form/useform.taro.ts | 1 + src/packages/form/useform.ts | 1 + 2 files changed, 2 insertions(+) diff --git a/src/packages/form/useform.taro.ts b/src/packages/form/useform.taro.ts index b4768cb8aa..24fe642db7 100644 --- a/src/packages/form/useform.taro.ts +++ b/src/packages/form/useform.taro.ts @@ -113,6 +113,7 @@ class FormStore { item.entity.onStoreChange('update') } }) + this.validateFields() } setCallback = (callback: Callbacks) => { diff --git a/src/packages/form/useform.ts b/src/packages/form/useform.ts index 66dd50b770..425d6b29cb 100644 --- a/src/packages/form/useform.ts +++ b/src/packages/form/useform.ts @@ -113,6 +113,7 @@ class FormStore { item.entity.onStoreChange('update') } }) + this.validateFields() } setCallback = (callback: Callbacks) => {