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-required only applied when ng-model has $error.required #11374

Closed
@dpogue

Description

@dpogue

Based on a Twitter conversation with @marcysutton: https://twitter.com/dpogue/status/569999089967849472

If I have <input type="text" ng-model="username" name="username" required> and I'm using ngAria then it should have the aria-required attribute added to it.

This currently only happens when the field doesn't have content (i.e., when username.$error.required is true):
https://github.com/angular/angular.js/blob/master/src/ngAria/aria.js#L292-L298

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions