Skip to content

Commit

Permalink
Release v2.2.4.
Browse files Browse the repository at this point in the history
  • Loading branch information
diasbruno committed Aug 14, 2017
1 parent fafa127 commit b908042
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 3 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
v2.2.4 - Mon, 14 Aug 2017 09:40:50 UTC
--------------------------------------




v2.2.3 - Thu, 10 Aug 2017 19:25:44 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": "2.2.3",
"version": "2.2.4",
"homepage": "https://github.com/reactjs/react-modal",
"authors": [
"Ryan Florence",
Expand Down
5 changes: 5 additions & 0 deletions dist/react-modal.js
Original file line number Diff line number Diff line change
Expand Up @@ -1349,6 +1349,10 @@ return /******/ (function(modules) { // webpackBootstrap
_this.shouldClose = false;
};

_this.handleContentOnMouseDown = function () {
_this.shouldClose = false;
};

_this.requestClose = function (event) {
return _this.ownerHandlesClose() && _this.props.onRequestClose(event);
};
Expand Down Expand Up @@ -1496,6 +1500,7 @@ return /******/ (function(modules) { // webpackBootstrap
className: this.buildClassName('content', className),
tabIndex: '-1',
onKeyDown: this.handleKeyDown,
onMouseDown: this.handleContentOnMouseDown,
onClick: this.handleContentOnClick,
role: this.props.role,
'aria-label': this.props.contentLabel
Expand Down
Loading

0 comments on commit b908042

Please sign in to comment.