Skip to content

Commit 04d5e3d

Browse files
committed
Bugfix for currentStep
1 parent 5fa8f77 commit 04d5e3d

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

dist/angular-wizard.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,9 @@ angular.module('mgo-angular-wizard').directive('wizard', function() {
9292
$scope.goTo = function(step) {
9393
unselectAll();
9494
$scope.selectedStep = step;
95-
$scope.currentStep = step.title;
95+
if ($scope.currentStep) {
96+
$scope.currentStep = step.title;
97+
}
9698
step.selected = true;
9799
}
98100

dist/angular-wizard.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/wizard.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,9 @@ angular.module('mgo-angular-wizard').directive('wizard', function() {
5050
$scope.goTo = function(step) {
5151
unselectAll();
5252
$scope.selectedStep = step;
53-
$scope.currentStep = step.title;
53+
if ($scope.currentStep) {
54+
$scope.currentStep = step.title;
55+
}
5456
step.selected = true;
5557
}
5658

0 commit comments

Comments
 (0)