pulsardev/vue-tour

onFinish call back doesnt seem to fire when invoked

nyfer opened this issue · 3 comments

nyfer commented

Have tried the below code to call the finish method, but it doesn't. Works for onskip. Am i missing something?
myCallbacks: {
onSkip: skipTour,
onFinish: finishTour
}

Hi @nyfer,

No it should work. Have you defined the finishTour function in the exact same way you defined skipTour?
If yes, can we have more details, or maybe a CodePen reproducing the issue?

nyfer commented

I did use the same function ie finishTour for onSkip and it worked, but same doesnt work for onFinish

nyfer commented

I had missed this :finish="tour.finish" and i think its not there in documentation as well.
I checked the source code and added it the custom template
After that it started working.