Skip to content
Permalink
Browse files

fix(router-outlet): hide leaving view after transition finishes (#19335)

  • Loading branch information...
liamdebeasi committed Sep 24, 2019
1 parent 61f04e5 commit bfa17d1594e49f42c0f992b403a9c04d80f66a97
Showing with 5 additions and 3 deletions.
  1. +5 −3 core/src/components/router-outlet/route-outlet.tsx
@@ -69,8 +69,13 @@ export class RouterOutlet implements ComponentInterface, NavOutlet {
(shouldComplete, step, dur) => {
if (this.ani) {
this.animationEnabled = false;

this.ani.onFinish(() => {
this.animationEnabled = true;

if (this.swipeHandler) {
this.swipeHandler.onEnd(shouldComplete);
}
}, { oneTimeCallback: true });

// Account for rounding errors in JS
@@ -94,9 +99,6 @@ export class RouterOutlet implements ComponentInterface, NavOutlet {
this.ani.progressEnd(shouldComplete, newStepValue, dur);

}
if (this.swipeHandler) {
this.swipeHandler.onEnd(shouldComplete);
}
}
);
this.swipeHandlerChanged();

0 comments on commit bfa17d1

Please sign in to comment.
You can’t perform that action at this time.