Skip to content

Commit 21bb113

Browse files
fix: don't emit transitioned when open
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
1 parent 5eb1b97 commit 21bb113

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

app/components/Modal.client.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ function handleModalClose() {
2626
function onDialogTransitionEnd(event: TransitionEvent) {
2727
const el = dialogRef.value
2828
if (!el) return
29+
if (!el.open) return
2930
if (event.target !== el) return
3031
if (event.propertyName !== 'opacity') return
3132
emit('transitioned')

0 commit comments

Comments
 (0)