From fa680861034b77d47c8c2725b917c84a548dd68d Mon Sep 17 00:00:00 2001 From: Artem Bulgakov Date: Wed, 6 Nov 2024 21:38:16 +0300 Subject: [PATCH] chore(maps): remove focus from search input on submit --- src/components/maps/MapsPageTabs.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/maps/MapsPageTabs.tsx b/src/components/maps/MapsPageTabs.tsx index 2bcd8f2..f1637a3 100644 --- a/src/components/maps/MapsPageTabs.tsx +++ b/src/components/maps/MapsPageTabs.tsx @@ -17,7 +17,7 @@ export function MapsPageTabs() { const onSubmit = (e: React.FormEvent) => { e.preventDefault(); - inputRef.current?.focus(); + inputRef.current?.blur(); // Set search query in URL if (searchText) { navigate({ to: "/maps", search: { q: searchText, sceneId } });