mirror of https://github.com/vector-im/riot-web
only hide x button when blurred && no more search term
parent
ac0810ab55
commit
d64cd58e93
|
@ -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