Skip to content

Commit

Permalink
dock displayed correctly on window resize
Browse files Browse the repository at this point in the history
  • Loading branch information
Caleb Everett committed Nov 5, 2015
1 parent 16b0662 commit a9a514d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/left-nav.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ const LeftNav = React.createClass({
let newMuiTheme = nextContext.muiTheme ? nextContext.muiTheme : this.state.muiTheme;
this.setState({
muiTheme: newMuiTheme,
open: this.state.open && this.props.docked || this.props.docked,
open: this.props.docked && !nextProps.docked ? false : this.state.open || nextProps.docked,
});
},

Expand Down

0 comments on commit a9a514d

Please sign in to comment.