bootstrap-tour icon indicating copy to clipboard operation
bootstrap-tour copied to clipboard

onStart method never invoked

Open ckgagan opened this issue 4 years ago • 0 comments

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?

ckgagan avatar Sep 16 '20 10:09 ckgagan