jquery-validation / jquery-validation

jQuery Validation Plugin library sources

Home Page:https://jqueryvalidation.org/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Focus on last focused field causes problems in accessibility

terohotti opened this issue · comments

New feature motivation

Better accessibility

New feature description

If there are several required fields, the focus after submit will be on the last focused field, which usually is the last field for keyboard users.

image

New feature implementation

Visually impaired people using screen readers and keyboards would be served better if the first empty required field would be focused rather than the last focused field.

I could not reproduce this behavior. Probably something else is moving the focus to the last field in your case?