mirror of
https://github.com/vector-im/element-web.git
synced 2024-11-17 05:55:00 +08:00
Null guard because this may not exist in the DOM.
This commit is contained in:
parent
58f9210b5a
commit
81cc30bab2
@ -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() {
|
||||||
|
if (inviteBox) {
|
||||||
inviteBox.focus();
|
inviteBox.focus();
|
||||||
|
}
|
||||||
}, 50);
|
}, 50);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user