Skip to content

Commit

Permalink
prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
claviska committed Dec 4, 2024
1 parent 62b315e commit e5d602e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/components/tab-group/tab-group.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit e5d602e

Please sign in to comment.