@@ -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