Skip to content

bug: ion-nav animation always reset by router #23777

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

Closed
4 of 6 tasks
MarkChrisLevy opened this issue Aug 17, 2021 · 6 comments
Closed
4 of 6 tasks

bug: ion-nav animation always reset by router #23777

MarkChrisLevy opened this issue Aug 17, 2021 · 6 comments
Labels
package: core @ionic/core package type: bug a confirmed bug report

Comments

@MarkChrisLevy
Copy link
Contributor

Prequisites

Ionic Framework Version

  • v4.x
  • v5.x
  • v6.x

Current Behavior

When ion-nav has animation prop set to custom transition, the transition is never used when page change is triggered by ion-router.

Expected Behavior

When ion-nav has animation prop, the custom transition should be used instead of default (mode specific) transition.

Steps to Reproduce

  1. Define router with some routes
  2. For ion-nav set custom transition (e.g. when in md mode set animation=iosTransitionAnimation from "@ionic/core" package)
  3. Trigger page change with ion-route-link or other component that uses ion-router for page changes

Code Reproduction URL

No response

Ionic Info

5.6.13

Additional Information

No response

@MarkChrisLevy
Copy link
Contributor Author

PR is comming...

@liamdebeasi liamdebeasi added package: core @ionic/core package type: bug a confirmed bug report labels Aug 17, 2021
@ionitron-bot ionitron-bot bot removed the triage label Aug 17, 2021
@liamdebeasi liamdebeasi added type: bug a confirmed bug report and removed type: bug a confirmed bug report labels Aug 17, 2021
@liamdebeasi
Copy link
Contributor

Thanks! Looks like animationBuilder needs to be set after ...opts here: https://github.com/ionic-team/ionic-framework/blob/main/core/src/components/nav/nav.tsx#L875

This is the same thing as what we did for ion-router-outlet: https://github.com/ionic-team/ionic-framework/blob/main/core/src/components/router-outlet/route-outlet.tsx#L230-L231

@MarkChrisLevy
Copy link
Contributor Author

@liamdebeasi exactly, I will make a PR in a moment

@MarkChrisLevy
Copy link
Contributor Author

MarkChrisLevy commented Aug 17, 2021

@liamdebeasi Done

@liamdebeasi
Copy link
Contributor

Thanks for the issue. This has been resolved via #23779, and a fix will be available in an upcoming release of Ionic Framework.

@ionitron-bot
Copy link

ionitron-bot bot commented Sep 17, 2021

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.

@ionitron-bot ionitron-bot bot locked and limited conversation to collaborators Sep 17, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
package: core @ionic/core package type: bug a confirmed bug report
Projects
None yet
Development

No branches or pull requests

2 participants