only hide x button when blurred && no more search term
This commit is contained in:
parent
f95ab2eeb1
commit
87f8000621
1 changed files with 1 additions and 1 deletions
|
@ -126,7 +126,7 @@ module.exports = createReactClass({
|
|||
if (this.props.collapsed) {
|
||||
return null;
|
||||
}
|
||||
const clearButton = !this.state.blurred ?
|
||||
const clearButton = (!this.state.blurred || this.state.searchTerm) ?
|
||||
(<AccessibleButton key="button"
|
||||
className="mx_SearchBox_closeButton"
|
||||
onClick={ () => {this._clearSearch("button"); } }>
|
||||
|
|
Loading…
Reference in a new issue