Skip to content

Commit

Permalink
fix: multiple initialization
Browse files Browse the repository at this point in the history
  • Loading branch information
mspasiano authored and astagi committed Jul 12, 2024
1 parent d1df044 commit 39fad60
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@ export class ItTabContainerComponent extends ItAbstractComponent implements OnDe

constructor() {
super();
this.tabSelected = new EventEmitter<ItTabItemComponent>();
}

override ngAfterViewInit(): void {
Expand Down Expand Up @@ -99,7 +98,7 @@ export class ItTabContainerComponent extends ItAbstractComponent implements OnDe
this.tabSubscriptions?.forEach(sub => sub.unsubscribe());
}

onTab(tab?: ItTabItemComponent) {
onTab(tab: ItTabItemComponent) {
this.tabSelected.emit(tab);
}
}

0 comments on commit 39fad60

Please sign in to comment.