preserve SearchBox searchTerm state when collapsing
This commit is contained in:
parent
a6914274b0
commit
bdc3e1173d
2 changed files with 11 additions and 3 deletions
|
@ -199,9 +199,10 @@ const LeftPanel = React.createClass({
|
|||
},
|
||||
);
|
||||
|
||||
const searchBox = !this.props.collapsed ?
|
||||
<SearchBox onSearch={ this.onSearch } onCleared={ this.onSearchCleared } /> :
|
||||
undefined;
|
||||
const searchBox = (<SearchBox
|
||||
onSearch={ this.onSearch }
|
||||
onCleared={ this.onSearchCleared }
|
||||
collapsed={this.props.collapsed} />);
|
||||
|
||||
return (
|
||||
<div className={containerClasses}>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue