فهرست منبع

HUE-5621 [importer] Changing step should reset the vertical scroll

Enrico Berti 9 سال پیش
والد
کامیت
86ead14
1فایلهای تغییر یافته به همراه3 افزوده شده و 0 حذف شده
  1. 3 0
      desktop/libs/indexer/src/indexer/templates/importer.mako

+ 3 - 0
desktop/libs/indexer/src/indexer/templates/importer.mako

@@ -1473,6 +1473,9 @@ ${ assist.assistPanel() }
       // Wizard related
       self.wizardEnabled = ko.observable(false);
       self.currentStep = ko.observable(1);
+      self.currentStep.subscribe(function () {
+        $('.content-panel').scrollTop(0);
+      });
       self.previousStepVisible = ko.pureComputed(function(){
         return self.currentStep() > 1;
       });