-
Notifications
You must be signed in to change notification settings - Fork 13.5k
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
ion-router-outlet custom transition not working for browser buttons #17722
Comments
Hi there, Thanks for opening an issue with us! Would you be able to provide a repository with the code required to reproduce this issue? Thanks! |
Thank you for the reply. This is true for any app, it is not a special case. Just serve the Ionic Conference App and try. For example, click between Login/Support items in the menu and you'll see the page animation, but go back/forward with the browser and there is none. On my project I replaced the animation builder:
Which replaces the animation correctly, but still have no animations when using the browser's buttons. As I mentioned, this happens because there is a hook to the router's "imperative" trigger but not to the "popstate", which is the browser's buttons. Thanks! |
hi @berchik please can you share code for myTransitionAnimation please |
Hi @berchik, It's hard to say what's going on without seeing your Thanks! |
Why hard? as I've mentioned it is not the animation function, which works correctly, but the missing hooks of the router. But here it is for your enjoyment, hopefully you can add the hooks so we wont have to bypass the ionic router:
|
Hi there, Thanks for the follow up. After some more investigation, I've determined that this is likely a duplicate of #16569. Note that the issue I referenced discusses I am going to close this issue in favor of the other one. We can continue any discussion regarding this issue over there. Thanks for using Ionic! |
Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out. |
Current behavior:
I'm using the setting for the custom ion-router-outlet animation and it is working well when using page transition in PWA.
However, when using the browser back/forward buttons the animation is skipped.
(Seems like the angular router's "imperative" trigger property of the NavigationStart is inherited but "popstate" is not)
Expected behavior:
Animation should work in all page transitions
Related code:
The text was updated successfully, but these errors were encountered: