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.
This commit is contained in:
parent
7affd5fcff
commit
097d6fdede
1 changed files with 1 additions and 1 deletions
|
@ -151,7 +151,7 @@ const LeftPanel = React.createClass({
|
||||||
}
|
}
|
||||||
} while (element && !(
|
} while (element && !(
|
||||||
classes.contains("mx_RoomTile") ||
|
classes.contains("mx_RoomTile") ||
|
||||||
classes.contains("mx_SearchBox_search")));
|
classes.contains("mx_textinput_search")));
|
||||||
|
|
||||||
if (element) {
|
if (element) {
|
||||||
element.focus();
|
element.focus();
|
||||||
|
|
Loading…
Reference in a new issue