diff --git a/core/misc/vertical-tabs.js b/core/misc/vertical-tabs.js index 67a9b3ea4de079c0f43bea0b003299c7934485e0..3b628bf2fba20b333c41373db3c0ee9965eb014c 100644 --- a/core/misc/vertical-tabs.js +++ b/core/misc/vertical-tabs.js @@ -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.