Skip to content

Commit

Permalink
fix: move @after-leave event binding to DialogContent
Browse files Browse the repository at this point in the history
  • Loading branch information
genu committed Feb 24, 2025
1 parent 67a14ed commit 5539910
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/runtime/components/Modal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -129,10 +129,9 @@ const ui = computed(() => modal({
<DialogOverlay
v-if="overlay"
:class="ui.overlay({ class: props.ui?.overlay })"
@after-leave="emits('after:leave')"
/>

<DialogContent :class="ui.content({ class: [!slots.default && props.class, props.ui?.content] })" v-bind="contentProps" v-on="contentEvents">
<DialogContent :class="ui.content({ class: [!slots.default && props.class, props.ui?.content] })" v-bind="contentProps" @after-leave="emits('after:leave')" v-on="contentEvents">
<VisuallyHidden v-if="!!slots.content && ((title || !!slots.title) || (description || !!slots.description))">
<DialogTitle v-if="title || !!slots.title">
<slot name="title">
Expand Down

0 comments on commit 5539910

Please sign in to comment.