diff --git a/src/components/ModalPortal.js b/src/components/ModalPortal.js index 611ad928..a82f4f8a 100644 --- a/src/components/ModalPortal.js +++ b/src/components/ModalPortal.js @@ -285,7 +285,9 @@ export default class ModalPortal extends Component { }; handleOverlayOnClick = event => { - event.stopPropagation(); + if (!this.props.shouldCloseOnOverlayClick) { + event.stopPropagation(); + } if (this.shouldClose === null) { this.shouldClose = true;