Use change event instead of blur.

This solves a bug whereby switching to the register form doesn't happen because
validation gets triggered which somehow prevents it.
This commit is contained in:
JC Brand 2017-09-24 10:21:14 +02:00
parent f1519bed1e
commit 85078b403b
2 changed files with 1 additions and 4 deletions

View File

@ -462,7 +462,7 @@
className: 'controlbox-pane fade-in', className: 'controlbox-pane fade-in',
events: { events: {
'submit form#converse-login': 'authenticate', 'submit form#converse-login': 'authenticate',
'blur input': 'validate' 'change input': 'validate'
}, },
initialize (cfg) { initialize (cfg) {

View File

@ -403,9 +403,6 @@
return form; return form;
}, },
showRegistrationForm () {
},
showSpinner () { showSpinner () {
const form = this.el.querySelector('form'); const form = this.el.querySelector('form');
form.innerHTML = tpl_spinner(); form.innerHTML = tpl_spinner();