diff --git a/newIDE/app/src/UI/Alert/AlertDialog.js b/newIDE/app/src/UI/Alert/AlertDialog.js index 7ed15707844d..53ece471d44e 100644 --- a/newIDE/app/src/UI/Alert/AlertDialog.js +++ b/newIDE/app/src/UI/Alert/AlertDialog.js @@ -39,6 +39,8 @@ function AlertDialog(props: Props) { />, ]} maxWidth="xs" + onRequestClose={props.onDismiss} + onApply={props.onDismiss} > {i18n._(props.message)} diff --git a/newIDE/app/src/UI/Alert/ConfirmDialog.js b/newIDE/app/src/UI/Alert/ConfirmDialog.js index 7fc5e9e1c9f5..3edbd0c0e668 100644 --- a/newIDE/app/src/UI/Alert/ConfirmDialog.js +++ b/newIDE/app/src/UI/Alert/ConfirmDialog.js @@ -79,6 +79,8 @@ function ConfirmDialog(props: Props) { actions={dialogActions} maxWidth="xs" noMobileFullScreen + onRequestClose={props.onDismiss} + onApply={props.onConfirm} > diff --git a/newIDE/app/src/UI/Alert/YesNoCancelDialog.js b/newIDE/app/src/UI/Alert/YesNoCancelDialog.js index c8cfbafbc451..17c266f976c0 100644 --- a/newIDE/app/src/UI/Alert/YesNoCancelDialog.js +++ b/newIDE/app/src/UI/Alert/YesNoCancelDialog.js @@ -69,6 +69,8 @@ function YesNoCancelDialog(props: Props) { ]} maxWidth="xs" noMobileFullScreen + onRequestClose={props.onClickCancel} + onApply={props.onClickYes} >