@@ -704,7 +704,9 @@ Modal.propTypes = {
704704 aria : _propTypes2 . default . object ,
705705 role : _propTypes2 . default . string ,
706706 contentLabel : _propTypes2 . default . string ,
707- shouldCloseOnEsc : _propTypes2 . default . bool
707+ shouldCloseOnEsc : _propTypes2 . default . bool ,
708+ overlayRef : _propTypes2 . default . func ,
709+ contentRef : _propTypes2 . default . func
708710} ;
709711Modal . defaultProps = {
710712 isOpen : false ,
@@ -1485,10 +1487,12 @@ var ModalPortal = function (_Component) {
14851487
14861488 _this . setOverlayRef = function ( overlay ) {
14871489 _this . overlay = overlay ;
1490+ _this . props . overlayRef && _this . props . overlayRef ( overlay ) ;
14881491 } ;
14891492
14901493 _this . setContentRef = function ( content ) {
14911494 _this . content = content ;
1495+ _this . props . contentRef && _this . props . contentRef ( content ) ;
14921496 } ;
14931497
14941498 _this . afterClose = function ( ) {
@@ -1808,7 +1812,9 @@ ModalPortal.propTypes = {
18081812 contentLabel : _propTypes2 . default . string ,
18091813 aria : _propTypes2 . default . object ,
18101814 children : _propTypes2 . default . node ,
1811- shouldCloseOnEsc : _propTypes2 . default . bool
1815+ shouldCloseOnEsc : _propTypes2 . default . bool ,
1816+ overlayRef : _propTypes2 . default . func ,
1817+ contentRef : _propTypes2 . default . func
18121818} ;
18131819exports . default = ModalPortal ;
18141820module . exports = exports [ "default" ] ;
0 commit comments