mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-11-09 16:16:41 +08:00
fix(router): going back uses correct nav transition (#21301)
This commit is contained in:
@ -173,7 +173,7 @@ export class Router implements ComponentInterface {
|
||||
const lastState = this.lastState;
|
||||
this.lastState = state;
|
||||
|
||||
if (state > lastState) {
|
||||
if (state > lastState || (state >= lastState && lastState > 0)) {
|
||||
return ROUTER_INTENT_FORWARD;
|
||||
} else if (state < lastState) {
|
||||
return ROUTER_INTENT_BACK;
|
||||
|
||||
Reference in New Issue
Block a user