mirror of
https://github.com/rowyio/rowy.git
synced 2025-12-29 00:16:39 +01:00
ConfirmationDialog: prevent clicking away from closing dialog
This commit is contained in:
@@ -31,7 +31,10 @@ export default function Confirmation({
|
||||
return (
|
||||
<Dialog
|
||||
open={open}
|
||||
onClose={handleClose}
|
||||
onClose={(_, reason) => {
|
||||
if (reason === "backdropClick" || reason === "escapeKeyDown") return;
|
||||
else handleClose();
|
||||
}}
|
||||
maxWidth={maxWidth}
|
||||
TransitionComponent={SlideTransitionMui}
|
||||
style={{ cursor: "default" }}
|
||||
|
||||
Reference in New Issue
Block a user