mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-18 03:00:58 +08:00
fix(vue): correctly show ion-back-button when going back (#22260)
resolves #22217
This commit is contained in:
@ -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
|
||||
);
|
||||
|
Reference in New Issue
Block a user