Skip to content

Commit 2cd7eb8

Browse files
committed
Fix handling modal blur
1 parent ad05638 commit 2cd7eb8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

libs/remix-ui/modal-dialog/src/lib/remix-ui-modal-dialog.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ export const ModalDialog = (props: ModalDialogProps) => {
3434
e.stopPropagation()
3535
if (document.activeElement !== this) {
3636
!window.testmode && handleHide()
37+
if (props.cancelFn) props.cancelFn()
3738
}
3839
}
3940
}

0 commit comments

Comments
 (0)