mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-16 10:01:59 +08:00
fix(router-outlet): hide leaving view after transition finishes (#19335)
This commit is contained in:
@ -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();
|
||||
|
Reference in New Issue
Block a user