mirror of
https://github.com/immich-app/immich.git
synced 2025-06-16 21:38:28 +02:00
fix(web): search bar deactivates when focus exits (#17549)
* fix(web): search bar deactivates when focus exits * fix: disable search bar on destroy For example, on the search page. If the escape key is pressed while the advanced filters button is focused, the search page will close but the search bar will remain activated.
This commit is contained in:
parent
983f656a6b
commit
79d4ce2d6d
3 changed files with 7 additions and 19 deletions
web/src/lib/stores
|
@ -1,12 +1,10 @@
|
|||
class SearchStore {
|
||||
savedSearchTerms = $state<string[]>([]);
|
||||
isSearchEnabled = $state(false);
|
||||
preventRaceConditionSearchBar = $state(false);
|
||||
|
||||
clearCache() {
|
||||
this.savedSearchTerms = [];
|
||||
this.isSearchEnabled = false;
|
||||
this.preventRaceConditionSearchBar = false;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue