Don't refresh page on password change prompt

It's on the form submit but missing a preventDefault
pull/21833/head
David Baker 2017-10-30 16:28:27 +00:00
parent 9dd77af5ef
commit 57d516f042
1 changed files with 2 additions and 1 deletions

View File

@ -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 newPassword = this.refs.new_input.value;
const confirmPassword = this.refs.confirm_input.value;