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:
parent
d6c9ad528b
commit
04725d0a65
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user