mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
fix(tabs): fix overlay present on tabs
This commit is contained in:
@@ -384,9 +384,9 @@ export class NavController extends Ion {
|
||||
* @returns {Promise} Returns a promise, which resolves when the transition has completed
|
||||
*/
|
||||
present(enteringView: ViewController, opts: any = {}): Promise<any> {
|
||||
let nav = this.rootNav;
|
||||
let rootNav = this.rootNav;
|
||||
|
||||
if (nav['_tabs']) {
|
||||
if (rootNav['_tabs']) {
|
||||
// TODO: must have until this goes in
|
||||
// https://github.com/angular/angular/issues/5481
|
||||
console.error('A parent <ion-nav> is required for ActionSheet/Alert/Modal');
|
||||
@@ -409,7 +409,7 @@ export class NavController extends Ion {
|
||||
});
|
||||
|
||||
// start the transition
|
||||
return this._insertViews(-1, [enteringView], opts);
|
||||
return rootNav._insertViews(-1, [enteringView], opts);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user