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 b914c04 commit fdd92d4Copy full SHA for fdd92d4
1 file changed
app/components/Header/SearchBox.vue
@@ -79,6 +79,10 @@ function handleSearchFocus() {
79
emit('focus')
80
}
81
82
+function handleSubmit() {
83
+ updateUrlQuery.flush()
84
+}
85
+
86
// Expose focus method for parent components
87
const inputRef = shallowRef<HTMLInputElement | null>(null)
88
function focus() {
@@ -88,7 +92,7 @@ defineExpose({ focus })
92
</script>
89
93
<template>
90
94
<search v-if="showSearchBar" :class="'flex-1 sm:max-w-md ' + inputClass">
91
- <form method="GET" action="/search" class="relative">
95
+ <form method="GET" action="/search" class="relative" @submit.prevent="handleSubmit">
96
<label for="header-search" class="sr-only">
97
{{ $t('search.label') }}
98
</label>
0 commit comments