Skip to content

Commit 120882b

Browse files
committed
OverlayTrigger: updateOverlayPosition() on componentDidMount
fixes the `defaultOverlayShown` prop that currently does nothing because overlay doesn't have a position after mounting
1 parent 0793e12 commit 120882b

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/OverlayTrigger.jsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,10 @@ var OverlayTrigger = React.createClass({
118118
clearTimeout(this._hoverDelay);
119119
},
120120

121+
componentDidMount: function() {
122+
this.updateOverlayPosition();
123+
},
124+
121125
handleDelayedShow: function () {
122126
if (this._hoverDelay != null) {
123127
clearTimeout(this._hoverDelay);

0 commit comments

Comments
 (0)