mirror of
https://github.com/outline/outline.git
synced 2026-11-30 17:10:36 +03:00
Add filter clear action on blank search
This fixes stale search persisting when clearing search characters.
This commit is contained in:
1 parent
933fb815e7
commit
0fe220164e
1 file changed
+2
@@ -56,6 +56,8 @@ const FilterOptions = ({
|
||||
option.label.toLowerCase().includes(value.toLowerCase())
|
||||
);
|
||||
setFilteredData(filteredData);
|
||||
} else {
|
||||
clearFilter();
|
||||
}
|
||||
},
|
||||
[options]
|
||||
|
||||
Reference in new issue
Block a user