fix(vue): correctly show ion-back-button when going back (#22260)

resolves #22217
This commit is contained in:
Liam DeBeasi
2020-10-07 14:58:41 -04:00
committed by GitHub
parent d746561ea2
commit 39d2530427
17 changed files with 497 additions and 211 deletions

View File

@ -164,8 +164,6 @@ export const IonRouterOutlet = defineComponent({
if (enteringViewItem === leavingViewItem) return;
if (enteringViewItem === leavingViewItem) return;
fireLifecycle(enteringViewItem.vueComponent, LIFECYCLE_WILL_ENTER);
if (leavingViewItem) {
@ -174,8 +172,6 @@ export const IonRouterOutlet = defineComponent({
fireLifecycle(leavingViewItem.vueComponent, LIFECYCLE_WILL_LEAVE);
enteringEl.classList.remove('ion-page-hidden');
/**
* If we are going back from a page that
* was presented using a custom animation
@ -199,7 +195,7 @@ export const IonRouterOutlet = defineComponent({
enteringEl,
leavingEl,
routerDirection,
routerDirection === 'forward',
!!routeInfo.pushedByRoute,
false,
animationBuilder
);