mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-22 13:32:54 +08:00
chore(): fix build error
This commit is contained in:
@ -1348,7 +1348,7 @@ export function getDefaultEscapeHatch(): EscapeHatch {
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
export function reconcileFromExternalRouterImpl(nav: Nav, component: any, data: any = {}, escapeHatch: EscapeHatch, isTopLevel: boolean) {
|
export function reconcileFromExternalRouterImpl(nav: Nav, component: any, data: any = {}, escapeHatch: EscapeHatch, isTopLevel: boolean): Promise<NavResult> {
|
||||||
// check if the nav has an `<ion-tab>` as a parent
|
// check if the nav has an `<ion-tab>` as a parent
|
||||||
if (isParentTab(nav.element as any)) {
|
if (isParentTab(nav.element as any)) {
|
||||||
// check if the tab is selected
|
// check if the tab is selected
|
||||||
@ -1374,8 +1374,10 @@ export function updateTab(nav: Nav, component: any, data: any, escapeHatch: Esca
|
|||||||
}).then(() => {
|
}).then(() => {
|
||||||
// okay, the tab is not selected, so we need to do a "switch" transition
|
// okay, the tab is not selected, so we need to do a "switch" transition
|
||||||
// basically, we should update the nav, and then swap the tabs
|
// basically, we should update the nav, and then swap the tabs
|
||||||
return promise.then(() => {
|
return promise.then((navResult) => {
|
||||||
return tabs.select(tab);
|
return tabs.select(tab).then(() => {
|
||||||
|
return navResult;
|
||||||
|
});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user