Skip to content

Commit

Permalink
[fixed] when ModalPortal is clicked, shouldClose is true if shouldClo…
Browse files Browse the repository at this point in the history
…seOnOverlayClick is true.

Associate reactjs#590
  • Loading branch information
Jongkeun authored and diasbruno committed Jan 16, 2018
1 parent 79688e8 commit 3256671
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/components/ModalPortal.js
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,9 @@ export default class ModalPortal extends Component {
if (this.moveFromContentToOverlay === null) {
this.shouldClose = false;
}
if (this.props.shouldCloseOnOverlayClick) {
this.shouldClose = true;
}
};

handleContentOnMouseUp = () => {
Expand Down

0 comments on commit 3256671

Please sign in to comment.