Skip to content

Commit

Permalink
Release v3.1.4.
Browse files Browse the repository at this point in the history
  • Loading branch information
diasbruno committed Nov 24, 2017
1 parent c1e535f commit 99f8933
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 4 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
v3.1.4 - Fri, 24 Nov 2017 14:26:59 UTC
--------------------------------------

- [c1e535f](../../commit/c1e535f) [chore] changelog writer.
- [a296627](../../commit/a296627) fix: prevent mouse event when shouldCloseOnOverlayClick = false.
- [cba31dd](../../commit/cba31dd) Update on_request_close.md


v3.1.3 - Wed, 22 Nov 2017 16:38:06 UTC
--------------------------------------

Expand Down
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-modal",
"version": "3.1.3",
"version": "3.1.4",
"homepage": "https://github.com/reactjs/react-modal",
"authors": [
"Ryan Florence",
Expand Down
5 changes: 4 additions & 1 deletion dist/react-modal.js
Original file line number Diff line number Diff line change
Expand Up @@ -1633,7 +1633,10 @@ var ModalPortal = function (_Component) {
_this.shouldClose = false;
};

_this.handleOverlayOnMouseDown = function () {
_this.handleOverlayOnMouseDown = function (event) {
if (!_this.props.shouldCloseOnOverlayClick) {
event.preventDefault();
}
_this.moveFromContentToOverlay = false;
};

Expand Down
Loading

0 comments on commit 99f8933

Please sign in to comment.