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)merge-requests/8604/head
parent
b8241d8c6d
commit
cee1be2bee
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue