From a12e7127e0eb9385cb10ee89c533d3d79223197b Mon Sep 17 00:00:00 2001 From: Alona Zherdetska <138328641+alionazherdetska@users.noreply.github.com> Date: Fri, 13 Dec 2024 11:18:42 +0100 Subject: [PATCH] Update packages/components/src/components/post-tabs/post-tabs.tsx MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Alizé Debray <33580481+alizedebray@users.noreply.github.com> --- packages/components/src/components/post-tabs/post-tabs.tsx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/packages/components/src/components/post-tabs/post-tabs.tsx b/packages/components/src/components/post-tabs/post-tabs.tsx index 22f5a8400f..09855bada0 100644 --- a/packages/components/src/components/post-tabs/post-tabs.tsx +++ b/packages/components/src/components/post-tabs/post-tabs.tsx @@ -22,9 +22,7 @@ export class PostTabs { private isLoaded = false; private get tabs(): HTMLPostTabHeaderElement[] { - return Array.from(this.host.querySelectorAll('post-tab-header')).filter(tab => - tab.closest('post-tabs') === this.host - ); + return this.host.querySelectorAll('& > post-tab-header'); } @Element() host: HTMLPostTabsElement;