Revert "Revert "clear the searchbox after quick-search""

This reverts commit 844ea390c8.
This commit is contained in:
David Baker
2017-05-17 10:10:51 +01:00
parent cfc6304b05
commit c5cf2132fb
2 changed files with 3 additions and 6 deletions

View File

@@ -48,18 +48,14 @@ module.exports = React.createClass({
},
onAction: function(payload) {
// Disabling this as I find it really really annoying, and was used to the
// previous behaviour - see https://github.com/vector-im/riot-web/issues/3348
/*
switch (payload.action) {
// Clear up the text field when a room is selected.
case 'view_room':
if (this.refs.search) {
if (payload.clear_search && this.refs.search) {
this._clearSearch();
}
break;
}
*/
},
onChange: function() {