mirror of
https://github.com/vector-im/element-web.git
synced 2026-05-07 21:26:13 +02:00
fix 'this' scoping bug that could never have worked...
This commit is contained in:
parent
103b0a03b1
commit
bd498b47b3
@ -56,8 +56,9 @@ module.exports = React.createClass({
|
||||
|
||||
if (this.props.homeserver) {
|
||||
if (curr_val == "") {
|
||||
var self = this;
|
||||
setTimeout(function() {
|
||||
target.value = "#:" + this.props.homeserver;
|
||||
target.value = "#:" + self.props.homeserver;
|
||||
target.setSelectionRange(1, 1);
|
||||
}, 0);
|
||||
} else {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user