forked from Mirrors/elk
fix: can't click dropdown options in visibility selector (#312)
This commit is contained in:
parent
399712c0c7
commit
3952dd6cd6
1 changed files with 0 additions and 9 deletions
|
@ -1,5 +1,4 @@
|
|||
<script lang="ts" setup>
|
||||
import { useFocusTrap } from '@vueuse/integrations/useFocusTrap'
|
||||
import { useDeactivated } from '~/composables/lifecycle'
|
||||
|
||||
export interface Props {
|
||||
|
@ -108,14 +107,6 @@ const isVShow = computed(() => {
|
|||
|
||||
const bindTypeToAny = ($attrs: any) => $attrs as any
|
||||
|
||||
const { activate, deactivate } = useFocusTrap(elDialogRoot)
|
||||
watch(visible, async (value) => {
|
||||
await nextTick()
|
||||
if (value)
|
||||
activate()
|
||||
else
|
||||
deactivate()
|
||||
})
|
||||
useEventListener('keydown', (e: KeyboardEvent) => {
|
||||
if (!visible.value)
|
||||
return
|
||||
|
|
Loading…
Reference in a new issue