From a7176770fb84b6bebc6bc647fced759eb89e85da Mon Sep 17 00:00:00 2001 From: katherinehhh Date: Sun, 10 Dec 2023 19:21:41 +0800 Subject: [PATCH] fix: sub-form(popover)in sub-table value mutual influence (#3164) --- .../antd/association-field/AssociationFieldProvider.tsx | 2 +- .../antd/association-field/InternalPopoverNester.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/core/client/src/schema-component/antd/association-field/AssociationFieldProvider.tsx b/packages/core/client/src/schema-component/antd/association-field/AssociationFieldProvider.tsx index 5487733f5..52b74cace 100644 --- a/packages/core/client/src/schema-component/antd/association-field/AssociationFieldProvider.tsx +++ b/packages/core/client/src/schema-component/antd/association-field/AssociationFieldProvider.tsx @@ -64,7 +64,7 @@ export const AssociationFieldProvider = observer( setLoading(false); return; } - if (['Nester', 'PopoverNester'].includes(currentMode)) { + if (['Nester'].includes(currentMode)) { if (['belongsTo', 'hasOne'].includes(collectionField.type)) { field.value = {}; } else if (['belongsToMany', 'hasMany'].includes(collectionField.type)) { diff --git a/packages/core/client/src/schema-component/antd/association-field/InternalPopoverNester.tsx b/packages/core/client/src/schema-component/antd/association-field/InternalPopoverNester.tsx index b27eb7f29..ffed2dc1b 100644 --- a/packages/core/client/src/schema-component/antd/association-field/InternalPopoverNester.tsx +++ b/packages/core/client/src/schema-component/antd/association-field/InternalPopoverNester.tsx @@ -71,7 +71,7 @@ export const InternaPopoverNester = observer( > - + {visible && (