We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c03d6ca commit 1c87dedCopy full SHA for 1c87ded
1 file changed
app/pages/index.vue
@@ -14,7 +14,8 @@ const debouncedNavigate = debounce(() => {
14
}, 250)
15
16
function handleSearch() {
17
- debouncedNavigate()
+ // If input is empty, navigate immediately (no need to debounce)
18
+ return searchQuery.value.trim() ? debouncedNavigate() : router.push('/search')
19
}
20
21
useSeoMeta({
0 commit comments