Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Commit

Permalink
Update room filter focus handling to avoid infinite loop
Browse files Browse the repository at this point in the history
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 element-hq/element-web#7926.
  • Loading branch information
jryans committed Dec 20, 2018
1 parent 7affd5f commit 097d6fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/structures/LeftPanel.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 097d6fd

Please sign in to comment.