Merge pull request #3432 from matrix-org/bwindels/fix-filter-x

Fix: only hide clear filter button when blurred & no more search term
This commit is contained in:
Bruno Windels 2019-09-12 16:03:44 +00:00 committed by GitHub
commit 7cb817c7bc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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"); } }>