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
Loading
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -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.