From d9902a4055aa086062dacf7d65c794e384f8b420 Mon Sep 17 00:00:00 2001 From: katherinehhh Date: Thu, 29 Jun 2023 08:04:09 +0800 Subject: [PATCH] fix(assigned field):dynamic value validation error when assigned field (#2117) --- .../components/assigned-field/AssignedField.tsx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/core/client/src/schema-initializer/components/assigned-field/AssignedField.tsx b/packages/core/client/src/schema-initializer/components/assigned-field/AssignedField.tsx index d91deef5f..0476389e6 100644 --- a/packages/core/client/src/schema-initializer/components/assigned-field/AssignedField.tsx +++ b/packages/core/client/src/schema-initializer/components/assigned-field/AssignedField.tsx @@ -158,6 +158,10 @@ export const AssignedField = (props: any) => { const typeChangeHandler = (val) => { setType(val); + if (val === AssignedFieldValueType.DynamicValue) { + field.validator = null; + field.form.clearErrors(); + } }; const valueChangeHandler = (val) => {