From 8f9727891b993417a9af19d0195afd6d5380ff05 Mon Sep 17 00:00:00 2001 From: Adam Bradley Date: Mon, 25 Jan 2016 12:54:55 -0600 Subject: [PATCH] fix(tabs): fix overlay present on tabs --- ionic/components/nav/nav-controller.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ionic/components/nav/nav-controller.ts b/ionic/components/nav/nav-controller.ts index 4ce4a4e4e9..956c56c5f4 100644 --- a/ionic/components/nav/nav-controller.ts +++ b/ionic/components/nav/nav-controller.ts @@ -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 { - 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 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); } /**