diff options
author | eug-vs <eug-vs@keemail.me> | 2020-10-08 20:24:46 +0300 |
---|---|---|
committer | eug-vs <eug-vs@keemail.me> | 2020-10-08 20:24:46 +0300 |
commit | 2c093ce738cb1281db04a8a3f2b6a35b3aa9b354 (patch) | |
tree | 9aff25b0bd0b47127b66e4db4818468ec70719bf | |
parent | fd7e4817cd0e0160e85ad98ad81f406c66a94800 (diff) | |
download | which-ui-2c093ce738cb1281db04a8a3f2b6a35b3aa9b354.tar.gz |
fix: close modal on clickaway
-rw-r--r-- | src/components/ModalScreen/ModalScreen.tsx | 1 |
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 }} |