Merge pull request #1554 from matrix-org/dbkr/pw_change_prevent_default
Don't refresh page on password change prompt
This commit is contained in:
commit
dfa782280c
1 changed files with 2 additions and 1 deletions
|
@ -184,7 +184,8 @@ module.exports = React.createClass({
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
onClickChange: function() {
|
onClickChange: function(ev) {
|
||||||
|
ev.preventDefault();
|
||||||
const oldPassword = this.state.cachedPassword || this.refs.old_input.value;
|
const oldPassword = this.state.cachedPassword || this.refs.old_input.value;
|
||||||
const newPassword = this.refs.new_input.value;
|
const newPassword = this.refs.new_input.value;
|
||||||
const confirmPassword = this.refs.confirm_input.value;
|
const confirmPassword = this.refs.confirm_input.value;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue