@@ -704,7 +704,9 @@ Modal.propTypes = {
704
704
aria : _propTypes2 . default . object ,
705
705
role : _propTypes2 . default . string ,
706
706
contentLabel : _propTypes2 . default . string ,
707
- shouldCloseOnEsc : _propTypes2 . default . bool
707
+ shouldCloseOnEsc : _propTypes2 . default . bool ,
708
+ overlayRef : _propTypes2 . default . func ,
709
+ contentRef : _propTypes2 . default . func
708
710
} ;
709
711
Modal . defaultProps = {
710
712
isOpen : false ,
@@ -1485,10 +1487,12 @@ var ModalPortal = function (_Component) {
1485
1487
1486
1488
_this . setOverlayRef = function ( overlay ) {
1487
1489
_this . overlay = overlay ;
1490
+ _this . props . overlayRef && _this . props . overlayRef ( overlay ) ;
1488
1491
} ;
1489
1492
1490
1493
_this . setContentRef = function ( content ) {
1491
1494
_this . content = content ;
1495
+ _this . props . contentRef && _this . props . contentRef ( content ) ;
1492
1496
} ;
1493
1497
1494
1498
_this . afterClose = function ( ) {
@@ -1808,7 +1812,9 @@ ModalPortal.propTypes = {
1808
1812
contentLabel : _propTypes2 . default . string ,
1809
1813
aria : _propTypes2 . default . object ,
1810
1814
children : _propTypes2 . default . node ,
1811
- shouldCloseOnEsc : _propTypes2 . default . bool
1815
+ shouldCloseOnEsc : _propTypes2 . default . bool ,
1816
+ overlayRef : _propTypes2 . default . func ,
1817
+ contentRef : _propTypes2 . default . func
1812
1818
} ;
1813
1819
exports . default = ModalPortal ;
1814
1820
module . exports = exports [ "default" ] ;
0 commit comments