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

onStart method never invoked #746

Open
ckgagan opened this issue Sep 16, 2020 · 0 comments
Open

onStart method never invoked #746

ckgagan opened this issue Sep 16, 2020 · 0 comments

Comments

@ckgagan
Copy link

ckgagan commented Sep 16, 2020

Hi,

I am using bootstrat-tour to present the feature tour of my app. Here is a sample code.

var tour = new Tour({
   backdrop: true,
   steps: tour_steps,
   onStart: function(tour){
     console.log("tour started")
   },
  onEnd: function(tour) {
    tour.setCurrentStep(0)
     window.localStorage.tour_start_time = null
  }
});
tour.init();
tour.start(true);

But when the tour starts, the "tour started" is not logged. However onEnd functions properly.
Should not the onStart callback be invoked when the tour starts?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant