fetat: stop propogation on generic modal click
This commit is contained in:
@@ -15,7 +15,7 @@ export const GenericModal: FC<ModalProps> = (
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<Modal open={isOpen} onClose={canBeClosed ? onClose : () => { }} >
|
<Modal open={isOpen} onClose={canBeClosed ? onClose : () => { }} >
|
||||||
<Box sx={modalStyle ? { ...modalStyle, boxShadow: 24, position: 'absolute', borderRadius: 5 } : defaultModalStyle}>
|
<Box sx={modalStyle ? { ...modalStyle, boxShadow: 24, position: 'absolute', borderRadius: 5 } : defaultModalStyle} onClick={(e) => e.stopPropagation()}>
|
||||||
{canBeClosed ?
|
{canBeClosed ?
|
||||||
<IconButton onClick={onClose} sx={{ float: "right" }}>
|
<IconButton onClick={onClose} sx={{ float: "right" }}>
|
||||||
<Clear sx={{ fontSize: 20 }} />
|
<Clear sx={{ fontSize: 20 }} />
|
||||||
|
|||||||
Reference in New Issue
Block a user