Fix crash on pressing Escape in item search

This commit is contained in:
Emi Matchu 2021-04-07 20:24:45 -07:00
parent 3ea6107f4f
commit ce57f9a67a

View file

@ -290,7 +290,7 @@ function SearchToolbar({
setSuggestions([]); setSuggestions([]);
return; return;
} }
onChange(null); onChange(emptySearchQuery);
e.target.blur(); e.target.blur();
} else if (e.key === "ArrowDown") { } else if (e.key === "ArrowDown") {
if (suggestions.length > 0) { if (suggestions.length > 0) {