catch ev arg so the disable stuff works

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
Michael Telatynski 2017-06-02 21:34:18 +01:00
parent 31d94f32f0
commit ae91f0ca62

View file

@ -121,7 +121,7 @@ module.exports = React.createClass({
} }
}, },
_doSubmit: function() { _doSubmit: function(ev) {
let email = this.refs.email.value.trim(); let email = this.refs.email.value.trim();
var promise = this.props.onRegisterClick({ var promise = this.props.onRegisterClick({
username: this.refs.username.value.trim() || this.props.guestUsername, username: this.refs.username.value.trim() || this.props.guestUsername,