mirror of
https://github.com/stashapp/stash.git
synced 2025-12-18 12:54:38 +03:00
Clear search term when clicking popover pill (#3408)
This commit is contained in:
@@ -91,6 +91,13 @@ export const ListFilter: React.FC<IListFilterProps> = ({
|
||||
}
|
||||
}, [customPageSizeShowing, perPageFocus]);
|
||||
|
||||
// clear search input when filter is cleared
|
||||
useEffect(() => {
|
||||
if (filter.searchTerm === "") {
|
||||
queryRef.current.value = "";
|
||||
}
|
||||
}, [filter.searchTerm, queryRef]);
|
||||
|
||||
function onChangePageSize(val: string) {
|
||||
if (val === "custom") {
|
||||
// added timeout since Firefox seems to trigger the rootClose immediately
|
||||
|
||||
Reference in New Issue
Block a user