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, run,
valueKey, valueKey,
labelKey, labelKey,
dataScopeFilter: filter,
}; };
}; };
async function doReset({ async function doReset({

View File

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