- π³πΏNew Zealand luke.stewart
Can confirm the behaviour in 13 still present in Drupal 10.
Found #1856178: '#group' Form API property only works with
elementsβ which appears to relate and down the rabbit hole further we have #1168246: Freedom For Fieldsets! Long Live The DETAILS. β .This details a solution that includes 'Use details everywhere we're (ab)using fieldsets currently. (including vertical tabs)'
Suggesting that perhaps vertical tabs shouldn't be used for this behaviour.
If we look at the author example in #17 we see that the side bar where the author lives no longer uses vertical tabs.
Grepping the core code base for 'vertical_tabs' we still see reference to vertical tabs in various places. And if we check the documentation in the comments for
web/core/lib/Drupal/Core/Render/Element/VerticalTabs.phpwe get usage which suggests that having to specify the group and not use a child element is how these elements are suppose to work.
Given this I think this is closed works as designed. Apologies if I have misunderstood.