fix(header-search): blur input when deactivating (#1855)

This commit is contained in:
metonym 2023-11-21 11:55:32 -08:00 committed by GitHub
commit 192f6a775c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -116,8 +116,9 @@
break;
case 'Escape':
if (value === '') {
// If the search bar is empty, close it.
// If the search bar is empty, deactivate and blur the input.
active = false;
ref?.blur();
}
// Reset the search query but keep the search bar active.