From 61ac91477243c86ddb243f951e790e265cac0a6f Mon Sep 17 00:00:00 2001 From: katherinehhh Date: Tue, 7 May 2024 21:03:10 +0800 Subject: [PATCH] fix: association select report Maximum call stack size exceeded in sub-table (#4278) --- .../antd/association-field/AssociationSelect.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/core/client/src/schema-component/antd/association-field/AssociationSelect.tsx b/packages/core/client/src/schema-component/antd/association-field/AssociationSelect.tsx index 04bb8aff02..f4587f79c4 100644 --- a/packages/core/client/src/schema-component/antd/association-field/AssociationSelect.tsx +++ b/packages/core/client/src/schema-component/antd/association-field/AssociationSelect.tsx @@ -8,7 +8,7 @@ */ import { LoadingOutlined, PlusOutlined } from '@ant-design/icons'; -import { onFieldChange } from '@formily/core'; +import { onFieldInputValueChange } from '@formily/core'; import { RecursionField, connect, mapProps, observer, useField, useFieldSchema, useForm } from '@formily/react'; import { uid } from '@formily/shared'; import { Space, message } from 'antd'; @@ -77,7 +77,7 @@ const InternalAssociationSelect = observer( const id = uid(); form.addEffects(id, () => { //支持深层次子表单 - onFieldChange('*', (fieldPath: any) => { + onFieldInputValueChange('*', (fieldPath: any) => { const linkageFields = filterAnalyses(field.componentProps?.service?.params?.filter) || []; if (linkageFields.includes(fieldPath?.props?.name) && field.value) { field.setValue(field.initialValue);