diff --git a/app/_components/search-form.tsx b/app/_components/search-form.tsx index e891426..caf865a 100644 --- a/app/_components/search-form.tsx +++ b/app/_components/search-form.tsx @@ -266,6 +266,16 @@ export const SearchForm: FC = (props) => { setSuggestionsVisible(true); }, [isFirstRender, setSuggestionsVisible]); + const handleIpDetailsOpenChange = useCallback( + (open: boolean) => { + setIpDetailsOpen(open); + if (!open) { + inputRef.current?.focus(); + } + }, + [setIpDetailsOpen, inputRef] + ); + return ( <>
@@ -357,7 +367,7 @@ export const SearchForm: FC = (props) => { );