diff --git a/src/App.vue b/src/App.vue index 6646f44b..0555d3bd 100644 --- a/src/App.vue +++ b/src/App.vue @@ -342,7 +342,6 @@ const toggleTheme = () => { const selectCategory = (category: string) => { activeCategory.value = category; - searchQuery.value = ""; isSidebarOpen.value = false; if ( category === "home" && diff --git a/src/components/AppHeader.vue b/src/components/AppHeader.vue index 27503536..77d47795 100644 --- a/src/components/AppHeader.vue +++ b/src/components/AppHeader.vue @@ -78,11 +78,4 @@ watch( localSearchQuery.value = newVal || ""; }, ); - -watch( - () => props.activeCategory, - () => { - localSearchQuery.value = ""; - }, -);