From 6aff277d30e92824ef286b7829b7d64f42cd079a Mon Sep 17 00:00:00 2001 From: Caleb Everett Date: Wed, 4 Nov 2015 12:20:53 -0800 Subject: [PATCH] set LeftNav docked in componentWillReceiveProps --- src/left-nav.jsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/left-nav.jsx b/src/left-nav.jsx index e01b11c12f19da..2621ab676d3ac9 100644 --- a/src/left-nav.jsx +++ b/src/left-nav.jsx @@ -82,7 +82,10 @@ const LeftNav = React.createClass({ //from the parent / owner using context componentWillReceiveProps (nextProps, nextContext) { let newMuiTheme = nextContext.muiTheme ? nextContext.muiTheme : this.state.muiTheme; - this.setState({muiTheme: newMuiTheme}); + this.setState({ + muiTheme: newMuiTheme, + open: (this.props.docked !== nextProps.docked) ? nextProps.docked : this.state.open, + }); }, componentDidMount() {