From 6158e460a18811fb42f2f65d85bb8d304bb91fe5 Mon Sep 17 00:00:00 2001 From: Tuukka Turu <tuukka.turu@druid.fi> Date: Mon, 11 Jan 2021 09:19:01 +0200 Subject: [PATCH] Fix tabs issue with hy-box --- src/components/hy-tabs/hy-tabs.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/hy-tabs/hy-tabs.tsx b/src/components/hy-tabs/hy-tabs.tsx index f367752c..f70e3059 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); -- GitLab