Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
When submitting a form which contains vertical tabs (such as adding node content), several of which have required fields, the last tab with an error state is given focus.
The first tab with an error state should be given focus.
Comments
Comment #2
ominimo CreditAttribution: ominimo commentedThis is the fist issue I have created. I hope I am doing this correctly. :)
Having looked at the js that gives focus i have a suggested fix:
- in field_group.js change the following code
to this
I have yet to learn how to make git patches so if someone thinks this is a worthwhile change (or has something better) maybe they could create a patch?
Comment #3
ominimo CreditAttribution: ominimo commentedComment #4
ominimo CreditAttribution: ominimo commentedI have just looked at dev 7.x-1.x-dev and noticed this has been fixed in exactly the way I have outlined above. I'll leave this here in case anyone needs a fix for 7.x-1.4
Please mark as fixed.
Comment #5
m42 CreditAttribution: m42 commented