We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents e75e82e + e2207c5 commit 60ace8eCopy full SHA for 60ace8e
frontend/express/public/javascripts/countly/vue/components/form.js
@@ -172,10 +172,12 @@
172
},
173
prevStep: function() {
174
this.setStep(this.currentStepIndex - 1, 'prev');
175
+ this.scrollToTop();
176
177
nextStep: function() {
178
this.beforeLeavingStep("onlyCurrent");
179
this.setStep(this.currentStepIndex + 1, 'next', !this.isCurrentStepValid);
180
181
182
reset: function() {
183
var self = this;
@@ -233,6 +235,12 @@
233
235
}
234
236
});
237
238
+ },
239
+ scrollToTop: function() {
240
+ var container = this.$el.getElementsByClassName("cly-vue-drawer__steps-container")[0];
241
+ if (container && container.scrollTop) {
242
+ container.scrollTop = 0;
243
+ }
244
245
246
};
0 commit comments