Skip to content

Commit

Permalink
Merge pull request react-bootstrap#394 from mtetlow/master
Browse files Browse the repository at this point in the history
Added check if we don't need to calc calculate the overlay position on mount
  • Loading branch information
mtscout6 committed Mar 17, 2015
2 parents 085dad5 + 66c439f commit fac35c8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/OverlayTrigger.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,9 @@ var OverlayTrigger = React.createClass({
},

componentDidMount: function() {
this.updateOverlayPosition();
if (this.props.defaultOverlayShown) {
this.updateOverlayPosition();
}
},

handleDelayedShow: function () {
Expand Down

0 comments on commit fac35c8

Please sign in to comment.