Skip to content

Commit 844ea39

Browse files
committed
Revert "clear the searchbox after quick-search"
This reverts commit ddd12ed.
1 parent fdf326c commit 844ea39

2 files changed

Lines changed: 6 additions & 3 deletions

File tree

‎src/components/structures/RoomSubList.js‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -165,11 +165,10 @@ var RoomSubList = React.createClass({
165165
}
166166
},
167167

168-
onRoomTileClick(roomId, ev) {
168+
onRoomTileClick(roomId) {
169169
dis.dispatch({
170170
action: 'view_room',
171171
room_id: roomId,
172-
clear_search: (ev && (ev.keyCode == 13 || ev.keyCode == 32)),
173172
});
174173
},
175174

‎src/components/structures/SearchBox.js‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,14 +48,18 @@ module.exports = React.createClass({
4848
},
4949

5050
onAction: function(payload) {
51+
// Disabling this as I find it really really annoying, and was used to the
52+
// previous behaviour - see https://github.com/vector-im/riot-web/issues/3348
53+
/*
5154
switch (payload.action) {
5255
// Clear up the text field when a room is selected.
5356
case 'view_room':
54-
if (payload.clear_search && this.refs.search) {
57+
if (this.refs.search) {
5558
this._clearSearch();
5659
}
5760
break;
5861
}
62+
*/
5963
},
6064

6165
onChange: function() {

0 commit comments

Comments
 (0)