Skip to content

Commit

Permalink
Merge pull request #839 from Infineon/837-bug-event-ifxtabchange-not-…
Browse files Browse the repository at this point in the history
…emitted-on-click-only-on-enter

Bugfix: tab event emitted also on click
  • Loading branch information
tishoyanchev authored Jan 15, 2024
2 parents 74a87a7 + 6397ffd commit cb6394b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/components/src/components/tabs/tabs.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@ export class IfxTabs {
this.internalActiveTabIndex = this.activeTabIndex;
this.internalFocusedTabIndex = this.internalActiveTabIndex;
this.updateTabStyles();
this.onSlotChange();
}


updateTabStyles() {
this.tabHeaderRefs.forEach((tab, index) => {
tab.classList.toggle('active', index === this.internalActiveTabIndex);
Expand Down Expand Up @@ -90,7 +90,6 @@ export class IfxTabs {
}

componentDidLoad() {
this.onSlotChange();
this.updateBorderAndFocus();
}

Expand Down

0 comments on commit cb6394b

Please sign in to comment.