Эх сурвалжийг харах

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

Enrico Berti 9 жил өмнө
parent
commit
86ead14

+ 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;
       });