always show clear button in search box when focused

This commit is contained in:
Bruno Windels 2019-09-12 11:12:06 +02:00
parent 4ae4e68967
commit 7c97078764

View file

@ -126,7 +126,7 @@ module.exports = createReactClass({
if (this.props.collapsed) {
return null;
}
const clearButton = this.state.searchTerm.length > 0 ?
const clearButton = !this.state.blurred ?
(<AccessibleButton key="button"
className="mx_SearchBox_closeButton"
onClick={ () => {this._clearSearch("button"); } }>