Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 1 addition & 6 deletions app/components/Modal.client.vue
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,7 @@ function handleModalClose() {
* This is used by consumers that need to run layout-sensitive logic (for example
* dispatching a resize) only after the modal is fully displayed.
*/
function onDialogTransitionEnd(event: TransitionEvent) {
const el = dialogRef.value
if (!el) return
if (!el.open) return
if (event.target !== el) return
if (event.propertyName !== 'opacity') return
function onDialogTransitionEnd() {
emit('transitioned')
}

Expand Down
Loading