Skip to content

Commit

Permalink
fix: using open from DialogRoot
Browse files Browse the repository at this point in the history
  • Loading branch information
Ericlm committed Mar 6, 2025
1 parent fed1556 commit fe66209
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions packages/core/src/AlertDialog/AlertDialogRoot.vue
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,6 @@ import { useForwardExpose, useForwardPropsEmits } from '@/shared'
const props = defineProps<AlertDialogProps>()
const emits = defineEmits<AlertDialogEmits>()
defineSlots<{
default: (props: {
/** Current open state */
open: typeof forwarded.value.open
}) => any
}>()
const forwarded = useForwardPropsEmits(props, emits)
useForwardExpose()
</script>
Expand All @@ -29,7 +23,8 @@ useForwardExpose()
<DialogRoot
v-bind="forwarded"
:modal="true"
:open="forwarded.open"
>
<slot :open="forwarded.open" />
<slot />
</DialogRoot>
</template>

0 comments on commit fe66209

Please sign in to comment.