Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Array validation errors should update specific input with invalid state #167

Open
jobara opened this issue Jul 20, 2022 · 0 comments
Open
Assignees
Labels
enhancement New feature or request

Comments

@jobara
Copy link
Member

jobara commented Jul 20, 2022

Is your feature request related to a problem?

When validating arrays of values, the error validation will be keyed with the array index that failed validation. For example, a set of checkbox values with the name toValidate[] might return an error as toValidate.0. In that case it'd be good to only mark the first checkbox as aria-invalid, rather than all of the checkboxes.

Describe the solution you'd like

For validation that indicates a specific input in a group of inputs, only that specific input should be marked as aria-invalid.

Additional context or notes

Related to #149

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants