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] Support aria-busy on ngModel #11885
Open
Description
When the validators run on ngModel, especially the $asyncValidators, the widget is in an unknown state, as input has been supplied, but validation is not yet complete.
From the aria-busy definition:
Indicates whether an element, and its subtree, are currently being updated.
Since we're in the process of modifying the DOM (or potentially modifying it), we should set aria-busy="true" before the $validators run and after the last of $asyncValidators completes. This ensures that users don't incorrectly perceive aria-invalid states while the widget is still running the validators.