Skip to content

Commit 0619a70

Browse files
author
Mike Lumetta
committed
Add <area/> to the list of interactive elements that should retain focus on navigation
1 parent 74f9351 commit 0619a70

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ function reset() {
1717
}
1818

1919
function isInteractiveElement(element) {
20-
const interactiveTags = ['A', 'BUTTON', 'INPUT', 'SELECT', 'TEXTAREA'];
20+
const interactiveTags = ['A', 'AREA', 'BUTTON', 'INPUT', 'SELECT', 'TEXTAREA'];
2121
return interactiveTags.includes(element.tagName) && !element.hasAttribute('disabled');
2222
}
2323

0 commit comments

Comments
 (0)