Skip to content

Commit c008b45

Browse files
committed
chore: oops
1 parent 022c67e commit c008b45

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

app/components/AppHeader.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ const searchQuery = ref('')
1919
const isSearchFocused = ref(false)
2020
2121
const showSearchBar = computed(() => {
22-
return route.name === 'search' || route.name === 'index'
22+
return route.name !== 'search' && route.name !== 'index'
2323
})
2424
2525
async function handleSearchInput() {
@@ -67,7 +67,7 @@ onKeyStroke(',', e => {
6767
<div class="flex-1 flex items-center justify-center gap-4 sm:gap-6">
6868
<!-- Search bar (shown on all pages except home and search) -->
6969
<search v-if="showSearchBar" class="hidden sm:block flex-1 max-w-md">
70-
<form role="search" class="relative" @submit.prevent="handleSearchInput">
70+
<form role="search" method="GET" action="/search" class="relative">
7171
<label for="header-search" class="sr-only">
7272
{{ $t('search.label') }}
7373
</label>

0 commit comments

Comments
 (0)