catch ev arg so the disable stuff works

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
pull/21833/head
Michael Telatynski 2017-06-02 21:34:18 +01:00
parent 31d94f32f0
commit ae91f0ca62
1 changed files with 1 additions and 1 deletions

View File

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