fix: enable multi-select not working (#6661)

This commit is contained in:
Katherine 2025-04-14 14:39:29 +08:00 committed by GitHub
parent 1af62daf9f
commit 9a0c644650
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -94,7 +94,11 @@ export const FilterCollectionFieldInternalField: React.FC = (props: Props) => {
// @ts-ignore // @ts-ignore
field.dataSource = uiSchema.enum; field.dataSource = uiSchema.enum;
const originalProps = const originalProps =
compile({ ...(operator?.schema?.['x-component-props'] || {}), ...(uiSchema['x-component-props'] || {}) }) || {}; compile({
...(operator?.schema?.['x-component-props'] || {}),
...(uiSchema['x-component-props'] || {}),
...(fieldSchema?.['x-component-props'] || {}),
}) || {};
field.componentProps = merge(field.componentProps || {}, originalProps, dynamicProps || {}); field.componentProps = merge(field.componentProps || {}, originalProps, dynamicProps || {});
}, [uiSchemaOrigin]); }, [uiSchemaOrigin]);