Prevent default otherwise the form will submit and reload the page
This commit is contained in:
parent
4bb570c545
commit
52286b2316
|
@ -21,6 +21,7 @@ module.exports = React.createClass({
|
||||||
},
|
},
|
||||||
|
|
||||||
onHSChosen: function(ev) {
|
onHSChosen: function(ev) {
|
||||||
|
ev.preventDefault();
|
||||||
MatrixClientPeg.replaceUsingUrl(this.refs.serverConfig.getHsUrl());
|
MatrixClientPeg.replaceUsingUrl(this.refs.serverConfig.getHsUrl());
|
||||||
this.setState({hs_url: this.refs.serverConfig.getHsUrl()});
|
this.setState({hs_url: this.refs.serverConfig.getHsUrl()});
|
||||||
this.setStep("fetch_stages");
|
this.setStep("fetch_stages");
|
||||||
|
@ -41,6 +42,7 @@ module.exports = React.createClass({
|
||||||
},
|
},
|
||||||
|
|
||||||
onUserPassEntered: function(ev) {
|
onUserPassEntered: function(ev) {
|
||||||
|
ev.preventDefault();
|
||||||
this.setState({busy: true});
|
this.setState({busy: true});
|
||||||
var that = this;
|
var that = this;
|
||||||
MatrixClientPeg.get().login('m.login.password', {
|
MatrixClientPeg.get().login('m.login.password', {
|
||||||
|
|
Loading…
Reference in New Issue