From e640f656404e49ca632de2f0f8a2164027fe3201 Mon Sep 17 00:00:00 2001 From: Matthew Hodgson Date: Mon, 16 May 2016 23:36:52 +0100 Subject: [PATCH] add close button to room search filter --- src/components/structures/SearchBox.js | 10 ++++++++ .../matrix-react-sdk/structures/SearchBox.css | 5 ++++ src/skins/vector/img/icons-close.svg | 23 +++++++++++++++++++ 3 files changed, 38 insertions(+) create mode 100644 src/skins/vector/img/icons-close.svg diff --git a/src/components/structures/SearchBox.js b/src/components/structures/SearchBox.js index a49f845ea4..9a38089e17 100644 --- a/src/components/structures/SearchBox.js +++ b/src/components/structures/SearchBox.js @@ -81,6 +81,16 @@ module.exports = React.createClass({ var searchControls; if (!this.props.collapsed) { searchControls = [ + this.state.searchTerm.length > 0 ? +
{ this.refs.search.value = ""; this.onChange(); } }> + +
+ : + + + +icons_create_room +Created with sketchtool. + + + + + + + + + + + + + +