From eee01f8dca3e7c286355edbcf1e3cffc1f43c99e Mon Sep 17 00:00:00 2001 From: yann300 Date: Tue, 30 Jan 2024 10:25:24 +0100 Subject: [PATCH] Update remix-ui-modal-dialog.tsx --- libs/remix-ui/modal-dialog/src/lib/remix-ui-modal-dialog.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/remix-ui/modal-dialog/src/lib/remix-ui-modal-dialog.tsx b/libs/remix-ui/modal-dialog/src/lib/remix-ui-modal-dialog.tsx index a23eb7fb33..b94ad7db1c 100644 --- a/libs/remix-ui/modal-dialog/src/lib/remix-ui-modal-dialog.tsx +++ b/libs/remix-ui/modal-dialog/src/lib/remix-ui-modal-dialog.tsx @@ -41,7 +41,7 @@ export const ModalDialog = (props: ModalDialogProps) => { e.stopPropagation() if (document.activeElement !== this) { !window.testmode && handleHide() - if (props.cancelFn) props.cancelFn() + !window.testmode && props.cancelFn && props.cancelFn() } } }