You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello and thanks for the great library. I'm implementing a controlled tour and everything is working great, except I seem to be getting the wrong event for the last step of the tour. When I click the "Last" button, it immediately fires an event:
action: "next"
status: "running"
type: "step:after"
In my handler, I am checking for when type is "step:after" and then I check if there is a next step. When there is no next step, I need to somehow fire a "tour:end" event. How do I do that? Or, if possible, is there a way to make the Last button automatically fire a "tour:end" event instead of "step:after"?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Hello and thanks for the great library. I'm implementing a controlled tour and everything is working great, except I seem to be getting the wrong event for the last step of the tour. When I click the "Last" button, it immediately fires an event:
In my handler, I am checking for when type is "step:after" and then I check if there is a next step. When there is no next step, I need to somehow fire a "tour:end" event. How do I do that? Or, if possible, is there a way to make the Last button automatically fire a "tour:end" event instead of "step:after"?
Beta Was this translation helpful? Give feedback.
All reactions