Skip to content

Commit

Permalink
utils.js: Recognize file inputs as focusable elements (pull #1470)
Browse files Browse the repository at this point in the history
Change utils.js method for checking element focusability to return true for file inputs.

Co-authored-by: Martijn Cuppens <martijn.cuppens@gmail.com>
  • Loading branch information
mcking65 and MartijnCuppens authored Jul 28, 2020
1 parent 733ceab commit 962481a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/js/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ aria.Utils.isFocusable = function (element) {
case 'A':
return !!element.href && element.rel != 'ignore';
case 'INPUT':
return element.type != 'hidden' && element.type != 'file';
return element.type != 'hidden';
case 'BUTTON':
case 'SELECT':
case 'TEXTAREA':
Expand Down

0 comments on commit 962481a

Please sign in to comment.