fix: remove unncessary onClickOutside for SelectTag component

This commit is contained in:
Abhinav Raut
2025-03-12 03:02:44 +05:30
parent 09703c1090
commit 4bef3e80a2

View File

@@ -65,7 +65,6 @@ import {
} from 'radix-vue'
import { computed, ref } from 'vue'
import { useField } from 'vee-validate'
import { onClickOutside } from '@vueuse/core'
const tags = defineModel({
required: false,
@@ -96,11 +95,6 @@ const open = ref(false)
const searchTerm = ref('')
const comboboxRef = ref(null)
// Close dropdown when clicking outside
onClickOutside(comboboxRef, () => {
open.value = false
})
const filteredOptions = computed(() => props.items.filter((item) => !tags.value.includes(item)))
const handleSelect = (event) => {