diff --git a/app/assets/javascripts/ci/ci_variable_list/components/ci_variable_drawer.vue b/app/assets/javascripts/ci/ci_variable_list/components/ci_variable_drawer.vue index ce7a29c85d2832433488b5122a51ecdfba303375..9ffbda6f7329a4c48dbf694711193f9346759719 100644 --- a/app/assets/javascripts/ci/ci_variable_list/components/ci_variable_drawer.vue +++ b/app/assets/javascripts/ci/ci_variable_list/components/ci_variable_drawer.vue @@ -400,6 +400,7 @@ export default { }, submit() { this.$emit(this.isEditing ? 'update-variable' : 'add-variable', this.variableToEmit); + this.$refs.drawer.$el.scrollTo({ top: 0, behavior: 'smooth' }); }, trackVariableValidationErrors() { const property = this.getTrackingErrorProperty(); @@ -440,6 +441,7 @@ export default {