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:
parent
f1519bed1e
commit
85078b403b
@ -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) {
|
||||||
|
@ -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();
|
||||||
|
Loading…
Reference in New Issue
Block a user