Skip to content

Commit 22caf9c

Browse files
committed
fix: update transition end logic in modal
1 parent ad306be commit 22caf9c

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

app/components/Modal.client.vue

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,7 @@ function handleModalClose() {
2323
* This is used by consumers that need to run layout-sensitive logic (for example
2424
* dispatching a resize) only after the modal is fully displayed.
2525
*/
26-
function onDialogTransitionEnd(event: TransitionEvent) {
27-
const el = dialogRef.value
28-
if (!el) return
29-
if (!el.open) return
30-
if (event.target !== el) return
31-
if (event.propertyName !== 'opacity') return
26+
function onDialogTransitionEnd() {
3227
emit('transitioned')
3328
}
3429

0 commit comments

Comments
 (0)