mirror of
https://github.com/nocobase/nocobase
synced 2024-11-15 05:46:00 +00:00
fix: association select report Maximum call stack size exceeded in sub-table (#4278)
This commit is contained in:
parent
0f6c2ab8c8
commit
61ac914772
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user