From a9a514d0177eed81c16eaa3c97ba01991127dca6 Mon Sep 17 00:00:00 2001 From: Caleb Everett Date: Wed, 4 Nov 2015 20:53:56 -0800 Subject: [PATCH] dock displayed correctly on window resize --- src/left-nav.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/left-nav.jsx b/src/left-nav.jsx index c5c013a92b089f..fdc02182683f1a 100644 --- a/src/left-nav.jsx +++ b/src/left-nav.jsx @@ -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, }); },