Null guard because this may not exist in the DOM.
This commit is contained in:
parent
58f9210b5a
commit
81cc30bab2
1 changed files with 3 additions and 1 deletions
|
@ -465,7 +465,9 @@ module.exports = React.createClass({
|
|||
if (this.state.room && this.state.room.getJoinedMembers().length == 1) {
|
||||
var inviteBox = document.getElementById("mx_SearchableEntityList_query");
|
||||
setTimeout(function() {
|
||||
if (inviteBox) {
|
||||
inviteBox.focus();
|
||||
}
|
||||
}, 50);
|
||||
}
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue