Skip to content

Commit

Permalink
fix(kpop): flip
Browse files Browse the repository at this point in the history
  • Loading branch information
Leopoldthecoder committed Jun 14, 2024
1 parent 262516f commit 6412690
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/components/KPop/KPop.vue
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
<div
v-show="isVisible"
:id="popoverId"
:key="popoverKey"
ref="popoverElement"
:aria-labelledby="$slots.title || title ? titleId : undefined"
class="popover"
Expand Down Expand Up @@ -168,6 +169,7 @@ const kPopoverElement = ref<HTMLElement | null>(null)
const triggerWrapperElement = ref<HTMLElement | null>(null)
const popoverElement = ref<HTMLElement | null>(null)
const isVisible = ref<boolean>(false)
const popoverKey = ref(0)
const popoverTrigger = computed((): HTMLElement | null => triggerWrapperElement.value && triggerWrapperElement.value?.children[0] ? triggerWrapperElement.value?.children[0] as HTMLElement : null)
Expand All @@ -187,6 +189,7 @@ const showPopover = () => {
clearTimeout(timer.value)
}
popoverKey.value++
isVisible.value = true
}
}
Expand Down

0 comments on commit 6412690

Please sign in to comment.