You've already forked element-web
mirror of
https://github.com/element-hq/element-web.git
synced 2025-11-29 21:23:11 +03:00
Null guard because this may not exist in the DOM.
This commit is contained in:
@@ -465,7 +465,9 @@ module.exports = React.createClass({
|
|||||||
if (this.state.room && this.state.room.getJoinedMembers().length == 1) {
|
if (this.state.room && this.state.room.getJoinedMembers().length == 1) {
|
||||||
var inviteBox = document.getElementById("mx_SearchableEntityList_query");
|
var inviteBox = document.getElementById("mx_SearchableEntityList_query");
|
||||||
setTimeout(function() {
|
setTimeout(function() {
|
||||||
inviteBox.focus();
|
if (inviteBox) {
|
||||||
|
inviteBox.focus();
|
||||||
|
}
|
||||||
}, 50);
|
}, 50);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user