We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ac357ec commit 6aff277Copy full SHA for 6aff277
src/left-nav.jsx
@@ -82,7 +82,10 @@ const LeftNav = React.createClass({
82
//from the parent / owner using context
83
componentWillReceiveProps (nextProps, nextContext) {
84
let newMuiTheme = nextContext.muiTheme ? nextContext.muiTheme : this.state.muiTheme;
85
- this.setState({muiTheme: newMuiTheme});
+ this.setState({
86
+ muiTheme: newMuiTheme,
87
+ open: (this.props.docked !== nextProps.docked) ? nextProps.docked : this.state.open,
88
+ });
89
},
90
91
componentDidMount() {
0 commit comments