-
Notifications
You must be signed in to change notification settings - Fork 45
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
Tour does not close on Route Transitions #314
Comments
Hello @SilvaMtz, can you please provide a reproduction of this or at least confirm your versions of Shepherd and ember-shepherd etc? |
@SilvaMtz so two things here:
|
@SilvaMtz I noticed that this is probably not desired behaviour as well, as I am using a separate tour for each route in my app. To work around it, I just cancel the current tour on the
I have not encountered any issues with this so far. But if it does not work for you, I suggest to place a breakpoint in the |
@SilvaMtz @st-h when I originally wrote this library, I did not intend for multiple tours. I always reused the same tour and changed the steps out. I also know there are people who want the tour to stay active across route transitions, so there are use cases for both cancelling and not. That being said, we could probably make this configurable. We could build something in that utilizes the router service or router directly, whichever is easier, and check |
@rwwagner90 I personally think it is fine that the app controls when the tour will be hidden - as it currently is. But, as you mentioned, one could always add configurable convenience methods to handle something like that - but well, it is quite easy to add that behaviour in the actual app in case it is desired. |
@st-h I agree, but I do want to make everything as easy as possible. |
Whether I type the URL directly or move through the app, the tour does not close. I have tried using
willTransition
,didTransition
,deactivate
, and many other Route Methods, something like this:willTransition() { this.get('tour').cancel();
I have multiple tours on my app. When I move from one route to another with the tour open, it does not close and stacks with the other tour. And the previous tour cannot be close even manually until the page is refreshed.
The text was updated successfully, but these errors were encountered: