You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 12, 2024. It is now read-only.
As it is currently written, ngAria is a bit too generous about adding tabindex="0" to elements. It adds the attribute to any element with ngModel or ngClick without checking whether it should actually do that. This includes buttons, inputs and other elements that might not need it. Adding unnecessary tabindex contributes to code bloat and is generally a poor practice.
The text was updated successfully, but these errors were encountered:
* Do not put tabindex on native controls using ng-model or ng-click
* Uses a single nodeBlacklist to limit which elements receive support
Closesangular#11500
* Do not put tabindex on native controls using ng-model or ng-click
* Uses a single nodeBlacklist to limit which elements receive support
Closesangular#11500
marcysutton
added a commit
to marcysutton/angular.js
that referenced
this issue
Aug 4, 2015
* Do not put tabindex on native controls using ng-model or ng-click
* Uses a single nodeBlacklist to limit which elements receive support
Closesangular#11500
This is still an issue on Radio buttons, where it sets tabindex to -1. The selected radio button gets 0, but this still prevents you from tabbing to the other radio buttons.
See: #12492 (comment)
marcysutton
added a commit
to marcysutton/angular.js
that referenced
this issue
Oct 14, 2015
* Do not put tabindex on native controls using ng-model or ng-click
* Uses a single nodeBlacklist to limit which elements receive support
Closesangular#11500
As it is currently written, ngAria is a bit too generous about adding
tabindex="0"
to elements. It adds the attribute to any element withngModel
orngClick
without checking whether it should actually do that. This includes buttons, inputs and other elements that might not need it. Adding unnecessarytabindex
contributes to code bloat and is generally a poor practice.The text was updated successfully, but these errors were encountered: