fix(Collapse): issue with data scope being cleared (#6782)

This commit is contained in:
Zeke Zhang 2025-04-28 14:25:15 +08:00 committed by GitHub
parent 6808620a3d
commit 4547b7dd96
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 1 deletions

View File

@ -1451,6 +1451,7 @@ export const useAssociationFilterBlockProps = () => {
run,
valueKey,
labelKey,
dataScopeFilter: filter,
};
};
async function doReset({

View File

@ -41,6 +41,7 @@ export const AssociationFilterItem = withDynamicSchemaProps(
handleSearchInput: _handleSearchInput,
params,
run,
dataScopeFilter,
valueKey: _valueKey,
labelKey: _labelKey,
defaultCollapse,
@ -94,7 +95,7 @@ export const AssociationFilterItem = withDynamicSchemaProps(
if (searchVisible || filter) {
run({
...params?.[0],
filter: undefined,
filter: dataScopeFilter,
});
}
setSearchVisible(!searchVisible);