Merge pull request #3435 from matrix-org/dbkr/fix-filter-x_2

Fix: only hide clear filter button when blurred & no more search term
pull/21833/head
David Baker 2019-09-12 18:27:22 +01:00 committed by GitHub
commit 29eef9ad10
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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"); } }>