mirror of https://github.com/vector-im/riot-web
Prevent room list keyboard handling from landing focus on hidden nodes
parent
19cfd577f4
commit
43410835a3
|
@ -347,7 +347,7 @@ export default class LeftPanel extends React.Component<IProps, IState> {
|
|||
if (element) {
|
||||
classes = element.classList;
|
||||
}
|
||||
} while (element && !cssClasses.some(c => classes.contains(c)));
|
||||
} while (element && (!cssClasses.some(c => classes.contains(c)) || element.offsetParent === null));
|
||||
|
||||
if (element) {
|
||||
element.focus();
|
||||
|
|
Loading…
Reference in New Issue