Merge pull request #3435 from matrix-org/dbkr/fix-filter-x_2
Fix: only hide clear filter button when blurred & no more search termpull/21833/head
commit
29eef9ad10
|
@ -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"); } }>
|
||||
|
|
Loading…
Reference in New Issue