1
0
mirror of https://github.com/uetchy/namae.git synced 2025-07-02 06:20:02 +09:00

fix: blur search field

This commit is contained in:
uetchy 2020-07-29 19:05:14 +09:00 committed by uetchy
parent d6c9ad528b
commit 04725d0a65

View File

@ -37,7 +37,7 @@ const Form: React.FC<{
function onSubmitQuery(e: React.FormEvent) {
e.preventDefault();
(e.target as HTMLFormElement).blur();
inputRef.current!.blur();
if (!inputValue || inputValue === '') {
return;
}