mirror of
https://github.com/element-hq/element-web
synced 2024-11-24 10:15:43 +03:00
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:
commit
7cb817c7bc
1 changed files with 1 additions and 1 deletions
|
@ -126,7 +126,7 @@ module.exports = createReactClass({
|
||||||
if (this.props.collapsed) {
|
if (this.props.collapsed) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
const clearButton = !this.state.blurred ?
|
const clearButton = (!this.state.blurred || this.state.searchTerm) ?
|
||||||
(<AccessibleButton key="button"
|
(<AccessibleButton key="button"
|
||||||
className="mx_SearchBox_closeButton"
|
className="mx_SearchBox_closeButton"
|
||||||
onClick={ () => {this._clearSearch("button"); } }>
|
onClick={ () => {this._clearSearch("button"); } }>
|
||||||
|
|
Loading…
Reference in a new issue