Skip to content

Commit af52158

Browse files
committed
fix: forwarded emits
1 parent 772d1cc commit af52158

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed
Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,14 @@
11
<script setup lang="ts">
2-
import { DialogClose, type DialogCloseProps } from 'reka-ui';
2+
import { DialogClose, useForwardPropsEmits, type DialogCloseProps } from 'reka-ui';
33
44
const props = defineProps<DialogCloseProps>();
5+
const emits = defineEmits([]);
6+
7+
const forwarded = useForwardPropsEmits(props, emits);
58
</script>
69

710
<template>
8-
<DialogClose v-bind="props">
11+
<DialogClose v-bind="forwarded">
912
<slot />
1013
</DialogClose>
1114
</template>

0 commit comments

Comments
 (0)