From 87f80006217d19c97ad6978cad22f68c53e14dfa Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Thu, 12 Sep 2019 17:17:15 +0200 Subject: [PATCH] only hide x button when blurred && no more search term --- src/components/structures/SearchBox.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/structures/SearchBox.js b/src/components/structures/SearchBox.js index d495fffbc9..de9a86c3a6 100644 --- a/src/components/structures/SearchBox.js +++ b/src/components/structures/SearchBox.js @@ -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) ? ( {this._clearSearch("button"); } }>