Fixed reset button not working properly

This commit is contained in:
Alexis
2024-02-26 23:16:17 +01:00
parent 6086161a78
commit 4e347e7d7d

View File

@@ -31,10 +31,7 @@ onMounted(() => {
})
const hasQuery = computed(() => q.value.length > 0)
const shouldBeActive = computed(() =>
(hasQuery.value && currentSearchMode.value === "query" && isComponentFocused.value)
|| currentSearchMode.value !== "query"
)
const shouldBeActive = computed(() => hasQuery.value || currentSearchMode.value !== "query")
const q = ref<string>("")