Skip to content

Commit

Permalink
Merge pull request #1145 from marnusw/selectHeight
Browse files Browse the repository at this point in the history
DropDownMenu container height not updated while expanded
  • Loading branch information
Hai Nguyen committed Jul 13, 2015
2 parents dcd4fdd + 1f95f39 commit b5d0019
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/menu/menu.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,9 @@ let Menu = React.createClass({
},

componentDidUpdate(prevProps) {
if (this.props.visible !== prevProps.visible) this._renderVisibility();
if (this.props.visible !== prevProps.visible || this.props.menuItems.length !== prevProps.menuItems.length) {
this._renderVisibility();
}
},

componentWillReceiveProps() {
Expand Down

0 comments on commit b5d0019

Please sign in to comment.