Skip to content

Commit ff7a390

Browse files
IlyaSurmayvalorkin
authored andcommitted
fix(tabs): fix default tab selection (valor-software#2643)
1 parent cf3fdc8 commit ff7a390

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/tabs/tabset.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ export class TabsetComponent implements OnDestroy {
5959

6060
addTab(tab: TabDirective): void {
6161
this.tabs.push(tab);
62-
tab.active = this.tabs.length === 1 && tab.active;
62+
tab.active = this.tabs.length === 1 && typeof tab.active === 'undefined';
6363
}
6464

6565
removeTab(

0 commit comments

Comments
 (0)