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

qzmenko created an issue. See original summary.

qzmenko’s picture

Status: Active » Needs review
StatusFileSize
new1008 bytes

Patch attached

qzmenko’s picture

Any reviews?

Vidushi Mehta’s picture

@qzmenko It would be good if you could attach a highlighting screenshot of the problem. Could not able to reproduce this.

Thanks

swentel’s picture

Will test in a bit, looks pretty cool!

nils.destoop’s picture

Thx for the patch. I reviewed it, but I'm tweaking it a bit, as your version targets all tabs on a page. So it breaks when you have multiple tabs groups on a page.

  • zuuperman committed b2c43ca on 8.x-3.x
    Issue #2931402 by qzmenko, zuuperman: Focused on last Vertical tab with...
nils.destoop’s picture

Status: Needs review » Fixed

The fix is committed to dev.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.