Skip to content

Commit 68ae9df

Browse files
committed
fix: prevent reloading on search form in orgs page
1 parent 6b6fccf commit 68ae9df

1 file changed

Lines changed: 10 additions & 1 deletion

File tree

app/components/Header/SearchBox.vue

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,16 @@ function handleSearchFocus() {
8080
}
8181
8282
function handleSubmit() {
83-
updateUrlQuery.flush()
83+
if (pagesWithLocalFilter.has(route.name as string)) {
84+
router.push({
85+
name: 'search',
86+
query: {
87+
q: searchQuery.value,
88+
},
89+
})
90+
} else {
91+
updateUrlQuery.flush()
92+
}
8493
}
8594
8695
// Expose focus method for parent components

0 commit comments

Comments
 (0)