fix 'this' scoping bug that could never have worked...

This commit is contained in:
Matthew Hodgson 2015-12-28 02:36:18 +00:00
parent 103b0a03b1
commit bd498b47b3

View file

@ -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 {