This repository was archived by the owner on Nov 9, 2017. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +14
-3
lines changed Expand file tree Collapse file tree 2 files changed +14
-3
lines changed Original file line number Diff line number Diff line change @@ -49,8 +49,15 @@ module.exports = {
49
49
this . _mountOverlayTarget ( ) ;
50
50
}
51
51
52
+ var overlay = this . renderOverlay ( ) ;
53
+
52
54
// Save reference to help testing
53
- this . _overlayInstance = React . render ( this . renderOverlay ( ) , this . _overlayTarget ) ;
55
+ if ( overlay !== null ) {
56
+ this . _overlayInstance = React . render ( overlay , this . _overlayTarget ) ;
57
+ } else {
58
+ // Unrender if the component is null for transitions to null
59
+ this . _unrenderOverlay ( ) ;
60
+ }
54
61
} ,
55
62
56
63
_unrenderOverlay : function ( ) {
@@ -63,7 +70,11 @@ module.exports = {
63
70
throw new Error ( 'getOverlayDOMNode(): A component must be mounted to have a DOM node.' ) ;
64
71
}
65
72
66
- return this . _overlayInstance . getDOMNode ( ) ;
73
+ if ( this . _overlayInstance ) {
74
+ return this . _overlayInstance . getDOMNode ( ) ;
75
+ }
76
+
77
+ return null ;
67
78
} ,
68
79
69
80
getContainerDOMNode : function ( ) {
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " react-bootstrap" ,
3
- "version" : " 0.13.2 " ,
3
+ "version" : " 0.13.3 " ,
4
4
"description" : " Bootstrap 3 components build with React" ,
5
5
"homepage" : " http://react-bootstrap.github.io/" ,
6
6
"main" : " main.js" ,
You can’t perform that action at this time.
0 commit comments