File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -21,7 +21,6 @@ function isOneOf(one, of) {
21
21
}
22
22
23
23
const OverlayTrigger = React . createClass ( {
24
-
25
24
propTypes : {
26
25
27
26
...Overlay . propTypes ,
@@ -142,12 +141,17 @@ const OverlayTrigger = React.createClass({
142
141
React . render ( this . _overlay , this . _mountNode ) ;
143
142
} ,
144
143
145
- getOverlay ( ) {
144
+ getOverlayTarget ( ) {
145
+ return React . findDOMNode ( this ) ;
146
+ } ,
147
+
148
+ getOverlay ( ) {
146
149
let props = {
147
150
show : this . state . isOverlayShown ,
148
151
onHide : this . hide ,
149
152
rootClose : this . props . rootClose ,
150
- target : ( ) => React . findDOMNode ( this ) ,
153
+ animation : this . props . animation ,
154
+ target : this . getOverlayTarget ,
151
155
placement : this . props . placement ,
152
156
container : this . props . container ,
153
157
containerPadding : this . props . containerPadding
You can’t perform that action at this time.
0 commit comments