Skip to content

Commit 962481a

Browse files
utils.js: Recognize file inputs as focusable elements (pull #1470)
Change utils.js method for checking element focusability to return true for file inputs. Co-authored-by: Martijn Cuppens <[email protected]>
1 parent 733ceab commit 962481a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/js/utils.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ aria.Utils.isFocusable = function (element) {
7676
case 'A':
7777
return !!element.href && element.rel != 'ignore';
7878
case 'INPUT':
79-
return element.type != 'hidden' && element.type != 'file';
79+
return element.type != 'hidden';
8080
case 'BUTTON':
8181
case 'SELECT':
8282
case 'TEXTAREA':

0 commit comments

Comments
 (0)