From cb095ba5a05a93d8133ee60f52cde71a6a7be98f Mon Sep 17 00:00:00 2001 From: Matthew Hodgson Date: Wed, 28 Oct 2015 19:41:23 +0000 Subject: [PATCH] WIP search stuff --- src/skins/vector/views/molecules/SearchBar.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/skins/vector/views/molecules/SearchBar.js b/src/skins/vector/views/molecules/SearchBar.js index aa72ee8da..da1dfb6b6 100644 --- a/src/skins/vector/views/molecules/SearchBar.js +++ b/src/skins/vector/views/molecules/SearchBar.js @@ -43,13 +43,15 @@ module.exports = React.createClass({ }, onSearchChange: function(e) { - + if (e.keyCode === 13) { + this.props.onSearch(this.refs.search_term.getDOMNode().value); + } }, - + render: function() { return (
- +
This Room
All Rooms