Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

[ngAria] aria-invalid applied too soon for ngModel #11883

Open
@kschaefe

Description

@kschaefe

ngAria is always setting "aria-invalid" to true or false. The attribute should only be set once the ngModelController.$validators || ngModelController.$asyncValidators have run at least one time.

From aria-invalid definition:

However, if the user has not attempted to submit the form, authors SHOULD NOT set the aria-invalid attribute on required widgets simply because the user has not yet entered data.

Although the spec says SHOULD NOT making the current ngAria usage legal, it is not the preferred approach.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions