fix: assign field modal cantnot open (#2807)
This commit is contained in:
parent
89361ef61c
commit
a3de91b37f
@ -557,6 +557,7 @@ function AssignedFieldValues() {
|
||||
<DefaultValueProvider isAllowToSetDefaultValue={() => false}>
|
||||
<SchemaSettings.ActionModalItem
|
||||
title={t('Assign field values')}
|
||||
maskClosable={false}
|
||||
initialSchema={initialSchema}
|
||||
initialValues={fieldSchema?.['x-action-settings']?.assignedValues}
|
||||
modalTip={tips[actionType]}
|
||||
|
@ -871,13 +871,10 @@ SchemaSettings.ActionModalItem = React.memo((props: any) => {
|
||||
await api.resource('uiSchemas').insert({ values: initialSchema });
|
||||
setSchemaUid(initialSchema['x-uid']);
|
||||
}
|
||||
|
||||
ctx.setVisible(false);
|
||||
setVisible(true);
|
||||
}, [api, ctx, dn, fieldSchema, initialSchema, schemaUid]);
|
||||
|
||||
const onKeyDown = useCallback((e: React.KeyboardEvent<HTMLLIElement>): void => e.stopPropagation(), []);
|
||||
|
||||
return (
|
||||
<>
|
||||
<SchemaSettings.Item {...others} onClick={openAssignedFieldValueHandler} onKeyDown={onKeyDown}>
|
||||
|
Loading…
Reference in New Issue
Block a user