aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoreug-vs <eug-vs@keemail.me>2020-10-08 20:24:46 +0300
committereug-vs <eug-vs@keemail.me>2020-10-08 20:24:46 +0300
commit2c093ce738cb1281db04a8a3f2b6a35b3aa9b354 (patch)
tree9aff25b0bd0b47127b66e4db4818468ec70719bf
parentfd7e4817cd0e0160e85ad98ad81f406c66a94800 (diff)
downloadwhich-ui-2c093ce738cb1281db04a8a3f2b6a35b3aa9b354.tar.gz
fix: close modal on clickaway
-rw-r--r--src/components/ModalScreen/ModalScreen.tsx1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/components/ModalScreen/ModalScreen.tsx b/src/components/ModalScreen/ModalScreen.tsx
index 6c514cd..c6f0565 100644
--- a/src/components/ModalScreen/ModalScreen.tsx
+++ b/src/components/ModalScreen/ModalScreen.tsx
@@ -58,6 +58,7 @@ const ModalScreen: React.FC<PropTypes> = ({ title, actionIcon, handleAction, isA
return (
<Dialog
open={isOpen}
+ onClose={handleClose}
onExited={onExited}
TransitionComponent={Transition}
PaperProps={{ className: classes.root }}