diff --git a/src/components/tab-group/tab-group.component.ts b/src/components/tab-group/tab-group.component.ts index 7941aae69..5e7064fdb 100644 --- a/src/components/tab-group/tab-group.component.ts +++ b/src/components/tab-group/tab-group.component.ts @@ -103,7 +103,9 @@ export default class SlTabGroup extends ShoelaceElement { this.syncTabsAndPanels(); // sync tabs when active state on tab changes } else if (mutations.some(m => m.attributeName === 'active')) { - const tabs = mutations.filter(m => m.attributeName === 'active' && (m.target as HTMLElement).tagName.toLowerCase() === 'sl-tab').map(m => m.target as SlTab); + const tabs = mutations + .filter(m => m.attributeName === 'active' && (m.target as HTMLElement).tagName.toLowerCase() === 'sl-tab') + .map(m => m.target as SlTab); const newActiveTab = tabs.find(tab => tab.active); if (newActiveTab) {