fix(ui): rollback setID in PopoverItem

This commit is contained in:
ArneBo 2025-02-12 12:10:52 +01:00
parent baa001a801
commit 2b87305342
1 changed files with 2 additions and 2 deletions

View File

@ -5,7 +5,7 @@ import { POPOVER_CONTEXT_INJECTION_KEY, type PopoverContext } from '~/injection-
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<{
parentPopoverContext?: PopoverContext;
@ -18,7 +18,7 @@ const { items, hoveredItem } = parentPopoverContext ?? inject(POPOVER_CONTEXT_IN
})
const id = items.value++
emit('internal:id', id)
setId(id)
</script>
<template>