mirror of
https://github.com/abhinavxd/libredesk.git
synced 2025-11-03 13:33:32 +00:00
fix: remove unncessary onClickOutside for SelectTag component
This commit is contained in:
@@ -65,7 +65,6 @@ import {
|
|||||||
} from 'radix-vue'
|
} from 'radix-vue'
|
||||||
import { computed, ref } from 'vue'
|
import { computed, ref } from 'vue'
|
||||||
import { useField } from 'vee-validate'
|
import { useField } from 'vee-validate'
|
||||||
import { onClickOutside } from '@vueuse/core'
|
|
||||||
|
|
||||||
const tags = defineModel({
|
const tags = defineModel({
|
||||||
required: false,
|
required: false,
|
||||||
@@ -96,11 +95,6 @@ const open = ref(false)
|
|||||||
const searchTerm = ref('')
|
const searchTerm = ref('')
|
||||||
const comboboxRef = ref(null)
|
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 filteredOptions = computed(() => props.items.filter((item) => !tags.value.includes(item)))
|
||||||
|
|
||||||
const handleSelect = (event) => {
|
const handleSelect = (event) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user