Fixed reset button not working properly
This commit is contained in:
@@ -31,10 +31,7 @@ onMounted(() => {
|
|||||||
})
|
})
|
||||||
|
|
||||||
const hasQuery = computed(() => q.value.length > 0)
|
const hasQuery = computed(() => q.value.length > 0)
|
||||||
const shouldBeActive = computed(() =>
|
const shouldBeActive = computed(() => hasQuery.value || currentSearchMode.value !== "query")
|
||||||
(hasQuery.value && currentSearchMode.value === "query" && isComponentFocused.value)
|
|
||||||
|| currentSearchMode.value !== "query"
|
|
||||||
)
|
|
||||||
|
|
||||||
const q = ref<string>("")
|
const q = ref<string>("")
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user