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
{{ message }}
Repository navigation
bug: react, pressing back button after replacing with custom animation does not use custom animation #28673
I have searched for existing issues that already report this problem, without success.
Ionic Framework Version
v7.x
Current Behavior
Calling a replace operation with a custom animation causes the animation to be run. However, pressing the ion-back-button on the resulting page never uses the custom animation.
Calling push operation with a custom animation causes the animation to be run. Pressing the ion-back-button on the resulting page does use the custom animation.
Expected Behavior
I expect the custom animation to be used when pressing the ion-back-button after a replace operation.
Steps to Reproduce
Clone repo, install dependencies, and serve application
Click "Message 1".
Click "Message 2 (Replace)". Observe that "Animation used" is logged indicating the custom animation is used.
Press the IonBackButton in the resulting page. Observe that the same message is not logged again indicating that the animation is not used.
Click "Message 1".
Press "Message 2 (Push)". Observe that "Animation used" is logged indicating the custom animation is used.
Press the IonBackButton in the resulting page. Observe that "Animation used" is logged indicating the custom animation is used.
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.
Activity
fix(react): use custom animation when going back after a replace (#28674
ionitron-bot commentedon Jan 10, 2024
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.