From 32a207d70d51a91d319bc2ca11633324d3f1d7a8 Mon Sep 17 00:00:00 2001 From: f0x Date: Fri, 24 May 2019 14:41:56 +0200 Subject: [PATCH] reset roomlist filter after selection --- components/filterList.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/components/filterList.js b/components/filterList.js index 41ceaa8..a7ee525 100644 --- a/components/filterList.js +++ b/components/filterList.js @@ -16,7 +16,8 @@ let FilterList = create({ }, select: function(id) { - this.setState({selection: id}) + this.setState({selection: id, filter: ""}) + this.state.inputRef.value = "" this.props.callback(id) },