Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[5.0] Guided Tours - Record currentStepId in sessionStorage when responding to an interact… #40776

Closed
wants to merge 8 commits into from
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,11 @@ function startTour(obj) {
break;

case 'button':
tour.next();
ele.addEventListener('click', () => {
// the button may submit a form so record the currentStepId in the session storage
sessionStorage.setItem('currentStepId', obj.steps[index].id + 1);
tour.next();
});
break;

case 'other':
Expand Down