Skip to content

Commit

Permalink
set LeftNav docked in componentWillReceiveProps
Browse files Browse the repository at this point in the history
  • Loading branch information
Caleb Everett committed Nov 8, 2015
1 parent a9a514d commit 64a30e7
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.props.docked && !nextProps.docked ? false : this.state.open || nextProps.docked,
open: (this.props.docked !== nextProps.docked) ? nextProps.docked : this.state.open,
});
},

Expand Down

0 comments on commit 64a30e7

Please sign in to comment.