Skip to content

Commit c1ccdce

Browse files
committed
Update SearchBox.vue
1 parent b283763 commit c1ccdce

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

app/components/Header/SearchBox.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ function handleSearchFocus() {
6666
function handleSubmit() {
6767
const query = searchQuery.value.trim()
6868
if (pagesWithLocalFilter.has(route.name)) {
69+
if (!query) return
6970
router.push({
7071
name: 'search',
7172
query: { q: query },

0 commit comments

Comments
 (0)