Close "source configuration" dialogs on backdrop click and "esc" press
This commit is contained in:
@@ -66,6 +66,7 @@ function ListDialog(props: IListDialogProps) {
|
|||||||
maxWidth="xs"
|
maxWidth="xs"
|
||||||
TransitionProps={{ onEntering: handleEntering }}
|
TransitionProps={{ onEntering: handleEntering }}
|
||||||
open={open}
|
open={open}
|
||||||
|
onClose={handleCancel}
|
||||||
>
|
>
|
||||||
<DialogTitle>{title}</DialogTitle>
|
<DialogTitle>{title}</DialogTitle>
|
||||||
<DialogContent dividers>
|
<DialogContent dividers>
|
||||||
|
|||||||
@@ -69,7 +69,12 @@ function ListDialog(props: IListDialogProps) {
|
|||||||
};
|
};
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Dialog sx={{ '& .MuiDialog-paper': { width: '80%', maxHeight: 435 } }} maxWidth="xs" open={open}>
|
<Dialog
|
||||||
|
sx={{ '& .MuiDialog-paper': { width: '80%', maxHeight: 435 } }}
|
||||||
|
maxWidth="xs"
|
||||||
|
open={open}
|
||||||
|
onClose={handleCancel}
|
||||||
|
>
|
||||||
<DialogTitle>{title}</DialogTitle>
|
<DialogTitle>{title}</DialogTitle>
|
||||||
<DialogContent dividers>
|
<DialogContent dividers>
|
||||||
<FormGroup>
|
<FormGroup>
|
||||||
|
|||||||
Reference in New Issue
Block a user