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