mirror of
https://github.com/immich-app/immich.git
synced 2024-12-29 15:11:58 +00:00
fix(web): Add debouncing to the search popup form (#13684)
This will fix the bug where when we click on the second date picker just after selecting date in first date picker it closes the search popup form
This commit is contained in:
parent
1ec9a60e41
commit
7e9fb5df5e
1 changed files with 10 additions and 6 deletions
|
@ -66,6 +66,7 @@
|
|||
};
|
||||
|
||||
const onFocusOut = () => {
|
||||
const focusOutTimer = setTimeout(() => {
|
||||
if ($isSearchEnabled) {
|
||||
$preventRaceConditionSearchBar = true;
|
||||
}
|
||||
|
@ -73,6 +74,9 @@
|
|||
closeDropdown();
|
||||
$isSearchEnabled = false;
|
||||
showFilter = false;
|
||||
}, 100);
|
||||
|
||||
clearTimeout(focusOutTimer);
|
||||
};
|
||||
|
||||
const onHistoryTermClick = async (searchTerm: string) => {
|
||||
|
|
Loading…
Reference in a new issue