Sean Rhee il y a 5 ans
Parent
commit
947a738572
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      dashboard/src/main/home/modals/Modal.tsx

+ 1 - 1
dashboard/src/main/home/modals/Modal.tsx

@@ -22,7 +22,7 @@ export default class Modal extends Component<PropsType, StateType> {
   }
 
   handleClickOutside = (event: any) => {
-    if (this.wrapperRef && !this.wrapperRef.current.contains(event.target)) {
+    if (this.wrapperRef && this.wrapperRef.current && !this.wrapperRef.current.contains(event.target)) {
       this.props.onRequestClose();
     }
   }