sorich87 / bootstrap-tour

Quick and easy product tours with Twitter Bootstrap Popovers
http://bootstraptour.com
MIT License
4.43k stars 941 forks source link

onStart method never invoked #746

Open ckgagan opened 3 years ago

ckgagan commented 3 years ago

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?