1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-11-19 05:22:13 +03:00

always show clear button in search box when focused

This commit is contained in:
Bruno Windels
2019-09-12 11:12:06 +02:00
committed by David Baker
parent c70736fe00
commit 122e15156a

View File

@@ -125,7 +125,7 @@ module.exports = React.createClass({
if (this.props.collapsed) { if (this.props.collapsed) {
return null; return null;
} }
const clearButton = this.state.searchTerm.length > 0 ? const clearButton = !this.state.blurred ?
(<AccessibleButton key="button" (<AccessibleButton key="button"
className="mx_SearchBox_closeButton" className="mx_SearchBox_closeButton"
onClick={ () => {this._clearSearch("button"); } }> onClick={ () => {this._clearSearch("button"); } }>