eslint to 8.9.0 (#7889)
Signed-off-by: Kerry Archibald <kerrya@element.io>
This commit is contained in:
parent
c257bc3f7a
commit
6e143c313e
5 changed files with 105 additions and 89 deletions
|
@ -667,7 +667,11 @@ export default class RoomList extends React.PureComponent<IProps, IState> {
|
|||
|
||||
public focus(): void {
|
||||
// focus the first focusable element in this aria treeview widget
|
||||
[...this.treeRef.current?.querySelectorAll<HTMLElement>('[role="treeitem"]')]
|
||||
const treeItems = this.treeRef.current?.querySelectorAll<HTMLElement>('[role="treeitem"]');
|
||||
if (treeItems) {
|
||||
return;
|
||||
}
|
||||
[...treeItems]
|
||||
.find(e => e.offsetParent !== null)?.focus();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue