Skip to content

Commit

Permalink
fix #1810 Screen reader reading previously focused autocomplete field…
Browse files Browse the repository at this point in the history
… on tab

This fixes an issue with JAWS, which reads the previously focused autocomplete
field when pressing tab while the suggestions list is opened.
The problem seems to come from the aria-activedescendant attribute being
removed too quickly (before the next field is focused).

PTR 14068536
  • Loading branch information
divdavem committed Mar 7, 2019
1 parent ab43afe commit 5799607
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/aria/widgets/form/AutoComplete.js
Expand Up @@ -285,7 +285,6 @@ module.exports = Aria.classDefinition({
_afterDropdownClose : function () {
if (this._cfg.waiAria) {
var field = this.getTextInputField();
field.removeAttribute("aria-activedescendant");
field.removeAttribute("aria-owns");

var dropDownIcon = this._getDropdownIcon();
Expand Down

0 comments on commit 5799607

Please sign in to comment.