Skip to content
Snippets Groups Projects
Verified Commit d850c199 authored by Théodore Biadala's avatar Théodore Biadala
Browse files

Issue #3291764 by Gauravvvv, baldwinlouie, Utkarsh_33, kostyashupenko,...

Issue #3291764 by Gauravvvv, baldwinlouie, Utkarsh_33, kostyashupenko, ranjith_kumar_k_u, eugene.brit, Farnoosh, rhiss, smustgrave, podarok, mkdok, bnjmnm, candelas, saganakat: The [0] hatch in misc/vertical-tabs.js causes issues if there are multiple forms with vertical tabs

(cherry picked from commit 8c9ff22228ec81b805bb4fdf83e78b378e008960)
parent d0f39b40
No related branches found
No related tags found
No related merge requests found
......@@ -196,8 +196,11 @@
})
.end()
.show()
.siblings(':hidden.vertical-tabs__active-tab')[0].value =
this.details.attr('id');
.siblings(':hidden.vertical-tabs__active-tab')
.get()
.forEach((hidden) => {
hidden.value = this.details.attr('id');
});
this.details.attr('open', true);
this.item.addClass('is-selected');
// Mark the active tab for screen readers.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment