mirror of
https://github.com/uetchy/namae.git
synced 2025-08-20 09:58:13 +09:00
fix: blur search field
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user