mirror of
https://gitee.com/nocobase/nocobase.git
synced 2025-07-01 18:52:20 +08:00
fix: attachment field storage setting dropdown not displaying options (#6365)
* fix: public form local improve * fix: bug
This commit is contained in:
parent
079401f2dc
commit
6772bdb873
@ -72,7 +72,6 @@ const InternalRemoteSelect = withDynamicSchemaProps(
|
||||
} = props;
|
||||
const dataSource = useDataSourceKey();
|
||||
const headers = useDataSourceHeaders(propsDataSource || dataSource);
|
||||
const [open, setOpen] = useState(false);
|
||||
const firstRun = useRef(false);
|
||||
const fieldSchema = useFieldSchema();
|
||||
const isQuickAdd = fieldSchema['x-component-props']?.addMode === 'quickAdd';
|
||||
@ -197,7 +196,6 @@ const InternalRemoteSelect = withDynamicSchemaProps(
|
||||
search={searchData.current}
|
||||
callBack={() => {
|
||||
searchData.current = null;
|
||||
setOpen(false);
|
||||
}}
|
||||
/>
|
||||
);
|
||||
@ -244,7 +242,6 @@ const InternalRemoteSelect = withDynamicSchemaProps(
|
||||
}, [value, defaultValue, data?.data, fieldNames.value, optionFilter]);
|
||||
|
||||
const onDropdownVisibleChange = (visible) => {
|
||||
setOpen(visible);
|
||||
searchData.current = null;
|
||||
if (visible) {
|
||||
run();
|
||||
@ -254,7 +251,6 @@ const InternalRemoteSelect = withDynamicSchemaProps(
|
||||
|
||||
return (
|
||||
<Select
|
||||
open={open}
|
||||
popupMatchSelectWidth={popupMatchSelectWidth}
|
||||
autoClearSearchValue
|
||||
filterOption={false}
|
||||
|
@ -9,7 +9,7 @@
|
||||
|
||||
export const editActionSchema = {
|
||||
type: 'void',
|
||||
title: 'Edit',
|
||||
title: "{{t('Edit')}}",
|
||||
'x-component': 'Action.Link',
|
||||
'x-component-props': {
|
||||
openMode: 'drawer',
|
||||
|
@ -238,7 +238,7 @@ export const publicFormsSchema: ISchema = {
|
||||
editActionSchema,
|
||||
delete: {
|
||||
type: 'void',
|
||||
title: 'Delete',
|
||||
title: "{{t('Delete')}}",
|
||||
'x-component': 'Action.Link',
|
||||
'x-use-component-props': 'useDeleteActionProps',
|
||||
},
|
||||
|
Loading…
x
Reference in New Issue
Block a user