diff --git a/front/src/components/ui/popover/PopoverItem.vue b/front/src/components/ui/popover/PopoverItem.vue index f662c7b60..41c1566da 100644 --- a/front/src/components/ui/popover/PopoverItem.vue +++ b/front/src/components/ui/popover/PopoverItem.vue @@ -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)