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
|
@ -815,7 +815,7 @@ export default class GroupView extends React.Component {
|
|||
_dismissUpgradeNotice = () => {
|
||||
localStorage.setItem(UPGRADE_NOTICE_LS_KEY, "true");
|
||||
this.setState({ showUpgradeNotice: false });
|
||||
}
|
||||
};
|
||||
|
||||
_onCreateSpaceClick = () => {
|
||||
createSpaceFromCommunity(this._matrixClient, this.props.groupId);
|
||||
|
|
|
@ -31,7 +31,7 @@ class GroupRoomTile extends React.Component {
|
|||
groupRoom: GroupRoomType.isRequired,
|
||||
};
|
||||
|
||||
static contextType = MatrixClientContext
|
||||
static contextType = MatrixClientContext;
|
||||
|
||||
onClick = e => {
|
||||
dis.dispatch({
|
||||
|
|
|
@ -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