Skip to content

Commit

Permalink
fix #1613 checked/not checked on checkboxes wrongly reported by JAWS
Browse files Browse the repository at this point in the history
AT-1295
  • Loading branch information
fbasso committed Mar 24, 2016
1 parent cb77ee1 commit fdafb39
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/aria/widgets/form/CheckBox.js
Expand Up @@ -379,7 +379,9 @@ module.exports = Aria.classDefinition({
if (!this._hasFocus) {
this._focus();
}
event.preventDefault(true);
if (event.target.tagName.toLowerCase() != "input") {
event.preventDefault(true);
}
},

/**
Expand Down
4 changes: 3 additions & 1 deletion src/aria/widgets/form/RadioButton.js
Expand Up @@ -120,7 +120,9 @@ var ariaWidgetsFormCheckBox = require("./CheckBox");
_dom_onclick : function (event) {
this._setRadioValue();
this._focus();
event.preventDefault(true);
if (event.target.tagName.toLowerCase() != "input") {
event.preventDefault(true);
}
},

/**
Expand Down

0 comments on commit fdafb39

Please sign in to comment.