From 4e347e7d7d488b7a8b0422a53db75d78fd89801f Mon Sep 17 00:00:00 2001 From: Alexis <35.alexis.pele@gmail.com> Date: Mon, 26 Feb 2024 23:16:17 +0100 Subject: [PATCH] Fixed reset button not working properly --- src/components/maps/overlay/SearchMarkers.vue | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/components/maps/overlay/SearchMarkers.vue b/src/components/maps/overlay/SearchMarkers.vue index d9043f47..1532504e 100644 --- a/src/components/maps/overlay/SearchMarkers.vue +++ b/src/components/maps/overlay/SearchMarkers.vue @@ -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("")