Skip to content

Commit 57e9316

Browse files
committed
Release v2.3.1.
1 parent 93256e9 commit 57e9316

File tree

5 files changed

+14
-5
lines changed

5 files changed

+14
-5
lines changed

CHANGELOG.md

+6
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
v2.2.4 - Mon, 14 Aug 2017 09:41:39 UTC
2+
--------------------------------------
3+
4+
5+
6+
17
v2.2.4 - Mon, 14 Aug 2017 09:40:50 UTC
28
--------------------------------------
39

bower.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-modal",
3-
"version": "2.2.4",
3+
"version": "2.3.1",
44
"homepage": "https://github.com/reactjs/react-modal",
55
"authors": [
66
"Ryan Florence",

dist/react-modal.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -248,6 +248,7 @@ return /******/ (function(modules) { // webpackBootstrap
248248
onRequestClose: _propTypes2.default.func,
249249
closeTimeoutMS: _propTypes2.default.number,
250250
ariaHideApp: _propTypes2.default.bool,
251+
shouldFocusAfter: _propTypes2.default.bool,
251252
shouldCloseOnOverlayClick: _propTypes2.default.bool,
252253
parentSelector: _propTypes2.default.func,
253254
aria: _propTypes2.default.object,
@@ -260,6 +261,7 @@ return /******/ (function(modules) { // webpackBootstrap
260261
bodyOpenClassName: bodyOpenClassName,
261262
ariaHideApp: true,
262263
closeTimeoutMS: 0,
264+
shouldFocusAfterRender: true,
263265
shouldCloseOnOverlayClick: true,
264266
parentSelector: function parentSelector() {
265267
return document.body;
@@ -1257,7 +1259,7 @@ return /******/ (function(modules) { // webpackBootstrap
12571259
var _this = _possibleConstructorReturn(this, (ModalPortal.__proto__ || Object.getPrototypeOf(ModalPortal)).call(this, props));
12581260

12591261
_this.setFocusAfterRender = function (focus) {
1260-
_this.focusAfterRender = focus;
1262+
_this.focusAfterRender = _this.props.shouldFocusAfterRender && focus;
12611263
};
12621264

12631265
_this.setOverlayRef = function (overlay) {
@@ -1538,6 +1540,7 @@ return /******/ (function(modules) { // webpackBootstrap
15381540
onAfterOpen: _propTypes.PropTypes.func,
15391541
onRequestClose: _propTypes.PropTypes.func,
15401542
closeTimeoutMS: _propTypes.PropTypes.number,
1543+
shouldFocusAfterRender: _propTypes.PropTypes.bool,
15411544
shouldCloseOnOverlayClick: _propTypes.PropTypes.bool,
15421545
role: _propTypes.PropTypes.string,
15431546
contentLabel: _propTypes.PropTypes.string,

0 commit comments

Comments
 (0)