From 71c3fea88afa9209f080458bbd7429b1d37baa2c Mon Sep 17 00:00:00 2001 From: xachary <179740385@qq.com> Date: Wed, 8 Nov 2023 11:42:54 +0800 Subject: [PATCH] fix: validateFields await missing (#3254) --- src/components/Form/src/hooks/useFormEvents.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/Form/src/hooks/useFormEvents.ts b/src/components/Form/src/hooks/useFormEvents.ts index 121f4cfd9..5c6d8eb1d 100644 --- a/src/components/Form/src/hooks/useFormEvents.ts +++ b/src/components/Form/src/hooks/useFormEvents.ts @@ -336,7 +336,7 @@ export function useFormEvents({ } async function validateFields(nameList?: NamePath[] | undefined) { - const values = unref(formElRef)?.validateFields(nameList); + const values = await unref(formElRef)?.validateFields(nameList); return handleFormValues(values); }