@@ -248,6 +248,7 @@ return /******/ (function(modules) { // webpackBootstrap
248
248
onRequestClose : _propTypes2 . default . func ,
249
249
closeTimeoutMS : _propTypes2 . default . number ,
250
250
ariaHideApp : _propTypes2 . default . bool ,
251
+ shouldFocusAfter : _propTypes2 . default . bool ,
251
252
shouldCloseOnOverlayClick : _propTypes2 . default . bool ,
252
253
parentSelector : _propTypes2 . default . func ,
253
254
aria : _propTypes2 . default . object ,
@@ -260,6 +261,7 @@ return /******/ (function(modules) { // webpackBootstrap
260
261
bodyOpenClassName : bodyOpenClassName ,
261
262
ariaHideApp : true ,
262
263
closeTimeoutMS : 0 ,
264
+ shouldFocusAfterRender : true ,
263
265
shouldCloseOnOverlayClick : true ,
264
266
parentSelector : function parentSelector ( ) {
265
267
return document . body ;
@@ -1257,7 +1259,7 @@ return /******/ (function(modules) { // webpackBootstrap
1257
1259
var _this = _possibleConstructorReturn ( this , ( ModalPortal . __proto__ || Object . getPrototypeOf ( ModalPortal ) ) . call ( this , props ) ) ;
1258
1260
1259
1261
_this . setFocusAfterRender = function ( focus ) {
1260
- _this . focusAfterRender = focus ;
1262
+ _this . focusAfterRender = _this . props . shouldFocusAfterRender && focus ;
1261
1263
} ;
1262
1264
1263
1265
_this . setOverlayRef = function ( overlay ) {
@@ -1538,6 +1540,7 @@ return /******/ (function(modules) { // webpackBootstrap
1538
1540
onAfterOpen : _propTypes . PropTypes . func ,
1539
1541
onRequestClose : _propTypes . PropTypes . func ,
1540
1542
closeTimeoutMS : _propTypes . PropTypes . number ,
1543
+ shouldFocusAfterRender : _propTypes . PropTypes . bool ,
1541
1544
shouldCloseOnOverlayClick : _propTypes . PropTypes . bool ,
1542
1545
role : _propTypes . PropTypes . string ,
1543
1546
contentLabel : _propTypes . PropTypes . string ,
0 commit comments