fix: attachment field storage setting dropdown not displaying options (#6365)

* fix: public form local improve

* fix: bug
This commit is contained in:
Katherine 2025-03-06 09:26:36 +08:00 committed by GitHub
parent 079401f2dc
commit 6772bdb873
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 2 additions and 6 deletions

View File

@ -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}

View File

@ -9,7 +9,7 @@
export const editActionSchema = {
type: 'void',
title: 'Edit',
title: "{{t('Edit')}}",
'x-component': 'Action.Link',
'x-component-props': {
openMode: 'drawer',

View File

@ -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',
},