diff --git a/src/components/hy-tabs/hy-tabs.tsx b/src/components/hy-tabs/hy-tabs.tsx
index f367752cc893443c51a8dc2636acce595a5905e9..f70e3059d40a4718a1ddd38c28cde2282952baea 100644
--- a/src/components/hy-tabs/hy-tabs.tsx
+++ b/src/components/hy-tabs/hy-tabs.tsx
@@ -57,7 +57,8 @@ export class HyTabs implements ComponentInterface {
       }
     }
 
-    const tabContainer = this.el.children[0];
+    const tabContainer = this.el.querySelector('.hy-tabs__container') as any;
+
     if (tabContainer) {
       this.generateArrays(tabContainer);