only hide x button when blurred && no more search term

pull/21833/head
Bruno Windels 2019-09-12 17:17:15 +02:00 committed by David Baker
parent ac0810ab55
commit d64cd58e93
1 changed files with 1 additions and 1 deletions

View File

@ -125,7 +125,7 @@ module.exports = React.createClass({
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"); } }>