From 39fad609eff01a63a5dfb3c5db70c57c1031505e Mon Sep 17 00:00:00 2001 From: "marco.spasiano" Date: Tue, 9 Jul 2024 17:38:18 +0200 Subject: [PATCH] fix: multiple initialization --- .../core/tab/tab-container/tab-container.component.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/projects/design-angular-kit/src/lib/components/core/tab/tab-container/tab-container.component.ts b/projects/design-angular-kit/src/lib/components/core/tab/tab-container/tab-container.component.ts index be5e6dc9..ed4dc88d 100644 --- a/projects/design-angular-kit/src/lib/components/core/tab/tab-container/tab-container.component.ts +++ b/projects/design-angular-kit/src/lib/components/core/tab/tab-container/tab-container.component.ts @@ -56,7 +56,6 @@ export class ItTabContainerComponent extends ItAbstractComponent implements OnDe constructor() { super(); - this.tabSelected = new EventEmitter(); } override ngAfterViewInit(): void { @@ -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); } }