mirror of
https://github.com/uetchy/namae.git
synced 2025-07-01 22:10:04 +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) {
|
function onSubmitQuery(e: React.FormEvent) {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
(e.target as HTMLFormElement).blur();
|
inputRef.current!.blur();
|
||||||
if (!inputValue || inputValue === '') {
|
if (!inputValue || inputValue === '') {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user