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',
events: {
'submit form#converse-login': 'authenticate',
'blur input': 'validate'
'change input': 'validate'
},
initialize (cfg) {

View File

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