fix(ui): rollback setID in PopoverItem
This commit is contained in:
parent
baa001a801
commit
2b87305342
|
@ -5,7 +5,7 @@ import { POPOVER_CONTEXT_INJECTION_KEY, type PopoverContext } from '~/injection-
|
||||||
|
|
||||||
import Button from '~/components/ui/Button.vue'
|
import Button from '~/components/ui/Button.vue'
|
||||||
|
|
||||||
const emit = defineEmits<{'internal:id': [value: number]}>()
|
const setId = defineEmit<[value: number]>('internal:id')
|
||||||
|
|
||||||
const { parentPopoverContext, to } = defineProps<{
|
const { parentPopoverContext, to } = defineProps<{
|
||||||
parentPopoverContext?: PopoverContext;
|
parentPopoverContext?: PopoverContext;
|
||||||
|
@ -18,7 +18,7 @@ const { items, hoveredItem } = parentPopoverContext ?? inject(POPOVER_CONTEXT_IN
|
||||||
})
|
})
|
||||||
|
|
||||||
const id = items.value++
|
const id = items.value++
|
||||||
emit('internal:id', id)
|
setId(id)
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
|
|
Loading…
Reference in New Issue