fix: sub-form(popover)in sub-table value mutual influence (#3164)
This commit is contained in:
parent
7bb50fea34
commit
a7176770fb
@ -64,7 +64,7 @@ export const AssociationFieldProvider = observer(
|
|||||||
setLoading(false);
|
setLoading(false);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (['Nester', 'PopoverNester'].includes(currentMode)) {
|
if (['Nester'].includes(currentMode)) {
|
||||||
if (['belongsTo', 'hasOne'].includes(collectionField.type)) {
|
if (['belongsTo', 'hasOne'].includes(collectionField.type)) {
|
||||||
field.value = {};
|
field.value = {};
|
||||||
} else if (['belongsToMany', 'hasMany'].includes(collectionField.type)) {
|
} else if (['belongsToMany', 'hasMany'].includes(collectionField.type)) {
|
||||||
|
@ -71,7 +71,7 @@ export const InternaPopoverNester = observer(
|
|||||||
>
|
>
|
||||||
<ReadPrettyInternalViewer {...titleProps} />
|
<ReadPrettyInternalViewer {...titleProps} />
|
||||||
</div>
|
</div>
|
||||||
<EditOutlined style={{ display: 'inline-flex', marginLeft: '5px' }} />
|
<EditOutlined style={{ display: 'inline-flex', margin: '5px' }} />
|
||||||
</span>
|
</span>
|
||||||
</PopoverWithStopPropagation>
|
</PopoverWithStopPropagation>
|
||||||
{visible && (
|
{visible && (
|
||||||
|
Loading…
Reference in New Issue
Block a user