diff --git a/src/app/components/SearchBar.tsx b/src/app/components/SearchBar.tsx index 6f6b562..0e98d1f 100644 --- a/src/app/components/SearchBar.tsx +++ b/src/app/components/SearchBar.tsx @@ -20,6 +20,7 @@ export default function SearchBar({ const handleKeyPress = (e: React.KeyboardEvent) => { if (e.key === 'Enter') { router.push(`/search?q=${encodeURIComponent(searchInput)}`) + onSubmit && onSubmit() } }