summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/gl_field_error.js
diff options
context:
space:
mode:
Diffstat (limited to 'app/assets/javascripts/gl_field_error.js')
-rw-r--r--app/assets/javascripts/gl_field_error.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/assets/javascripts/gl_field_error.js b/app/assets/javascripts/gl_field_error.js
index 04301c9ce12..ac4c8d28ee4 100644
--- a/app/assets/javascripts/gl_field_error.js
+++ b/app/assets/javascripts/gl_field_error.js
@@ -114,7 +114,7 @@ export default class GlFieldError {
this.state.empty = currentValue === '';
this.state.submitted = true;
this.renderValidity();
- this.form.focusOnFirstInvalid.apply(this.form);
+ this.form.focusInvalid.apply(this.form);
// For UX, wait til after first invalid submission to check each keyup
this.inputElement