Reset search when header button is clicked - Closes #1979 (#4309)

This commit is contained in:
Prospector
2025-09-02 09:04:55 -07:00
committed by GitHub
parent 2194ae774c
commit 2e95a8a117
2 changed files with 8 additions and 0 deletions

View File

@@ -54,6 +54,7 @@
v-if="!server && !flags.projectTypesPrimaryNav"
:links="selectableProjectTypes"
class="hidden md:flex"
@click="query = ''"
/>
</section>
<aside
@@ -385,6 +386,9 @@ await updateServerContext()
watch(route, () => {
updateServerContext()
if (!route.params.q) {
query.value = ''
}
})
async function updateServerContext() {