From 444f324c310cf1efe0140ec9ac32dd055802456b Mon Sep 17 00:00:00 2001 From: Ibby Hadeed Date: Mon, 1 May 2017 19:04:05 -0400 Subject: [PATCH] fix(super-tabs): don't fire view events to fix change detection closes #30 --- src/components/super-tabs/super-tabs.ts | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/components/super-tabs/super-tabs.ts b/src/components/super-tabs/super-tabs.ts index 9b27b0b..4056ba7 100644 --- a/src/components/super-tabs/super-tabs.ts +++ b/src/components/super-tabs/super-tabs.ts @@ -426,7 +426,6 @@ export class SuperTabs implements OnInit, AfterContentInit, AfterViewInit, OnDes */ onTabChange(index: number) { if (index <= this._tabs.length) { - this._tabs[this.selectedTabIndex].getActive()._didLeave(); this.selectedTabIndex = index; @@ -434,10 +433,6 @@ export class SuperTabs implements OnInit, AfterContentInit, AfterViewInit, OnDes this.refreshTabStates(); - const activeViewController = this._tabs[this.selectedTabIndex].getActive(); - - activeViewController && activeViewController._didEnter(); - this.tabSelect.emit({ index, id: this._tabs[index].tabId