Skip to content

Commit

Permalink
fix(router): going back uses correct nav transition (#21301)
Browse files Browse the repository at this point in the history
  • Loading branch information
bitflower authored Jun 8, 2020
1 parent a4f0bdb commit c8db0d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/components/router/router.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit c8db0d5

Please sign in to comment.