From f3ddb0bfd1e04d8f8431c5c8bc81a49652407926 Mon Sep 17 00:00:00 2001 From: Adam Bradley Date: Thu, 21 Apr 2016 11:15:20 -0500 Subject: [PATCH] fix(nav): tabs should not dereg child navs Closes #6267 --- ionic/components/nav/nav-controller.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ionic/components/nav/nav-controller.ts b/ionic/components/nav/nav-controller.ts index 4ad642ce1b..56b172ba83 100644 --- a/ionic/components/nav/nav-controller.ts +++ b/ionic/components/nav/nav-controller.ts @@ -1399,7 +1399,7 @@ export class NavController extends Ion { } this._views.length = 0; - if (this.parent) { + if (this.parent && this.parent.unregisterChildNav) { this.parent.unregisterChildNav(this); } }