Fixup invalid refs.
This commit is contained in:
parent
bad1feb23c
commit
f141cdb3dd
2 changed files with 2 additions and 2 deletions
|
@ -297,7 +297,7 @@
|
|||
|
||||
Dispatcher.prototype.initFieldErrors = function() {
|
||||
var flaggedForms = document.querySelectorAll('.show-gl-field-errors');
|
||||
return [...taggedForms].forEach(function(form) {
|
||||
return [...flaggedForms].forEach(function(form) {
|
||||
new gl.GlFieldErrors(form);
|
||||
});
|
||||
};
|
||||
|
|
|
@ -78,7 +78,7 @@
|
|||
this.form.focusOnFirstInvalid.apply(this.form);
|
||||
// For UX, wait til after first invalid submission to check each keyup
|
||||
this.inputElement.off('keyup.field_validator')
|
||||
.on('keyup.field_validator', this.updateValidityState.bind(this));
|
||||
.on('keyup.field_validator', this.updateValidity.bind(this));
|
||||
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue