Update remix-ui-modal-dialog.tsx

pull/5370/head
yann300 10 months ago committed by GitHub
parent 216aed67c0
commit eee01f8dca
  1. 2
      libs/remix-ui/modal-dialog/src/lib/remix-ui-modal-dialog.tsx

@ -41,7 +41,7 @@ export const ModalDialog = (props: ModalDialogProps) => {
e.stopPropagation() e.stopPropagation()
if (document.activeElement !== this) { if (document.activeElement !== this) {
!window.testmode && handleHide() !window.testmode && handleHide()
if (props.cancelFn) props.cancelFn() !window.testmode && props.cancelFn && props.cancelFn()
} }
} }
} }

Loading…
Cancel
Save