-
Notifications
You must be signed in to change notification settings - Fork 272
Closed
Labels
enhancementNew feature or requestNew feature or requestgood first issueGood for newcomersGood for newcomershelp wantedExtra attention is neededExtra attention is needed
Description
The keyboard events are registered globally so if you have multiple tours in your app, it will fire the custom events for every tour. I ran into this with the stop callback, I was running some custom logic specific to each tour on the stop callback and it was running every single tour's stop logic when I hit the escape key instead of the running tour's stop callback.
I worked around it for now by checking that the current tour is running first in the callback:
if (this.$tours[this.tourName].isRunning)....
Possible fix: namespace the events or only register/unload them when a tour is in progress rather than on mount?
buksy90 and Julien1138
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requestgood first issueGood for newcomersGood for newcomershelp wantedExtra attention is neededExtra attention is needed