Skip to content

fix: fix incorrect nav animations #28297

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

Open
wants to merge 10 commits into
base: main
Choose a base branch
from
Prev Previous commit
Next Next commit
fix: small simplification
  • Loading branch information
philipp-stsm committed Oct 31, 2023
commit b852c9b61c94e255b87962fd71b985a1e4a0e0bb
Original file line number Diff line number Diff line change
Expand Up @@ -94,10 +94,7 @@ export class StackController {
* This can happen e.g. when navigating to a page with navigateRoot and then using the browser back button
*/
const isPopStateTransitionFromRootPage =
direction === 'back' &&
isDirectionBasedOnNavigationIds &&
leavingView?.root &&
currentNavigation?.trigger === 'popstate';
direction === 'back' && leavingView?.root && currentNavigation?.trigger === 'popstate';

/**
* whether direction based on stack order takes precedence over direction based on navigation ids
Expand Down