Skip to content

Commit

Permalink
fix(tabs): fix default tab selection (#2643)
Browse files Browse the repository at this point in the history
  • Loading branch information
IlyaSurmay authored and valorkin committed Sep 14, 2017
1 parent cf3fdc8 commit ff7a390
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tabs/tabset.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ export class TabsetComponent implements OnDestroy {

addTab(tab: TabDirective): void {
this.tabs.push(tab);
tab.active = this.tabs.length === 1 && tab.active;
tab.active = this.tabs.length === 1 && typeof tab.active === 'undefined';
}

removeTab(
Expand Down

0 comments on commit ff7a390

Please sign in to comment.