Skip to content

Commit

Permalink
Update packages/components/src/components/post-tabs/post-tabs.tsx
Browse files Browse the repository at this point in the history
Co-authored-by: Alizé Debray <[email protected]>
  • Loading branch information
alionazherdetska and alizedebray authored Dec 13, 2024
1 parent 1b6716c commit a12e712
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions packages/components/src/components/post-tabs/post-tabs.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,7 @@ export class PostTabs {
private isLoaded = false;

private get tabs(): HTMLPostTabHeaderElement[] {
return Array.from(this.host.querySelectorAll<HTMLPostTabHeaderElement>('post-tab-header')).filter(tab =>
tab.closest('post-tabs') === this.host
);
return this.host.querySelectorAll('& > post-tab-header');
}

@Element() host: HTMLPostTabsElement;
Expand Down

0 comments on commit a12e712

Please sign in to comment.