Skip to content
This repository has been archived by the owner on Aug 28, 2024. It is now read-only.

Commit

Permalink
fix SearchFilter.vue (#123)
Browse files Browse the repository at this point in the history
  • Loading branch information
ToBinio authored Nov 11, 2023
1 parent 591ce08 commit bf5d391
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions lib/components/search/SearchFilter.vue
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
</template>

<script setup>
import { ref, defineProps, defineEmits, watchEffect } from 'vue'
import { defineProps, defineEmits, computed } from 'vue'
import { Checkbox } from '@'
const props = defineProps({
Expand All @@ -40,13 +40,9 @@ const props = defineProps({
},
})
const isActive = ref(props.activeFilters.value.includes(props.facetName))
const isActive = computed(() => props.activeFilters.includes(props.facetName))
const emit = defineEmits(['toggle'])
watchEffect(() => {
isActive.value = props.activeFilters.value.includes(props.facetName)
})
const toggle = () => {
emit('toggle', props.facetName)
}
Expand Down

0 comments on commit bf5d391

Please sign in to comment.