Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

advanceOn doesn't complete tour #93

Closed
ryanjm opened this issue Jan 30, 2016 · 3 comments
Closed

advanceOn doesn't complete tour #93

ryanjm opened this issue Jan 30, 2016 · 3 comments

Comments

@ryanjm
Copy link

ryanjm commented Jan 30, 2016

My last step has an advanceOn option on it but the complete event doesn't get called like it does when I tap the "Next" button.

I'd expect the advanceOn to behave the same was next would. If it is the end of the tour that would mark the tour as completed and call the complete event.

@geoffdaigle
Copy link
Contributor

Hi @ryanjm, sorry for the delay on this response.

What's interesting is that, under the hood, shepherd does call next():
https://github.com/HubSpot/shepherd/blob/master/src/js/shepherd.js#L201-L208

I'll look into this, it might be a bug if I or someone else can reproduce the same problem you're having.

@crabmusket
Copy link

I've got the same issue going on. Will look into it at some point but I don't have the time for now, so I've worked around it using manual event listeners and a mediator.

@chuckcarpenter
Copy link
Member

closing this one, as it's fixed and tested in 2.0 https://github.com/shipshapecode/shepherd/blob/master/test/unit/test.tour.js#L131

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants