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
nod_ 2024-06-27 09:40:34 +02:00
parent b8241d8c6d
commit cee1be2bee
No known key found for this signature in database
GPG Key ID: 76624892606FA197
1 changed files with 5 additions and 2 deletions

View File

@ -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.