Skip to content

Commit fac35c8

Browse files
committed
Merge pull request react-bootstrap#394 from mtetlow/master
Added check if we don't need to calc calculate the overlay position on mount
2 parents 085dad5 + 66c439f commit fac35c8

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/OverlayTrigger.jsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,9 @@ var OverlayTrigger = React.createClass({
119119
},
120120

121121
componentDidMount: function() {
122-
this.updateOverlayPosition();
122+
if (this.props.defaultOverlayShown) {
123+
this.updateOverlayPosition();
124+
}
123125
},
124126

125127
handleDelayedShow: function () {

0 commit comments

Comments
 (0)