fix: Table filter menu reset not working (#22079)

* fix: Table filter menu reset not working

* use setFilteredKeysSync
This commit is contained in:
骗你是小猫咪 2020-03-10 21:24:41 +08:00 committed by GitHub
parent 5787f3e8b2
commit 924f1cfd3a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -140,6 +140,7 @@ function FilterDropdown<RecordType>(props: FilterDropdownProps<RecordType>) {
};
const onReset = () => {
setFilteredKeysSync([]);
internalTriggerFilter([]);
};