Skip to content

Commit

Permalink
Changed: Issue 2147 - Tabs script updated for EMBL People tabs stru…
Browse files Browse the repository at this point in the history
…cture (#2156)
  • Loading branch information
bhushan-ebi authored Nov 4, 2024
1 parent 6bc828e commit 69cbcb2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions components/vf-tabs/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
### 2.1.7

* Updated: Tabs script code updated to accommodate 'EMBL People' tabs HTML structure [Tracking issue](https://github.com/visual-framework/vf-core/issues/2147)

### 2.1.6

* Added : React support for Tabs [Tracking issue](https://github.com/visual-framework/vf-core/issues/2089)
Expand Down
2 changes: 1 addition & 1 deletion components/vf-tabs/vf-tabs.js
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ const vfTabsSwitch = newTab => {

// get the parent ul of the clicked tab
let parentTabSet = newTab.closest(".vf-tabs");
let parentPanelSet = parentTabSet.nextElementSibling;
let parentPanelSet = parentTabSet.nextElementSibling || newTab.closest(".vf-tabs__list").nextElementSibling;
let tabs = parentTabSet.querySelectorAll("[data-vf-js-tabs] .vf-tabs__link");
let panels = parentPanelSet.querySelectorAll(
"[data-vf-js-tabs-content] [id^='vf-tabs__section']"
Expand Down

0 comments on commit 69cbcb2

Please sign in to comment.