Skip to content

Commit e7c3cfe

Browse files
bugfix: Wrong bullet highlighted
When starting introJs at a step != 0 the active bullet was not set correctly (always the first bullet gets active).
1 parent 10fab7d commit e7c3cfe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

intro.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -594,7 +594,7 @@
594594
self.goToStep(this.getAttribute('data-stepnumber'));
595595
};
596596

597-
if (i === 0) anchorLink.className = "active";
597+
if (i === (targetElement.step-1)) anchorLink.className = "active";
598598

599599
anchorLink.href = 'javascript:void(0);';
600600
anchorLink.innerHTML = " ";

0 commit comments

Comments
 (0)