Update room filter focus handling to avoid infinite loop

The classes on the search box input were changed without updating the focusing
loop in the room filter which used one of these classes as a boundary condition.
This led to a case that could loop forever.

Regressed by #2267.
Fixes vector-im/riot-web#7926.
pull/21833/head
J. Ryan Stinnett 2018-12-20 20:23:06 +00:00
parent 7affd5fcff
commit 097d6fdede
1 changed files with 1 additions and 1 deletions

View File

@ -151,7 +151,7 @@ const LeftPanel = React.createClass({
}
} while (element && !(
classes.contains("mx_RoomTile") ||
classes.contains("mx_SearchBox_search")));
classes.contains("mx_textinput_search")));
if (element) {
element.focus();