We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 90ee087 commit 6f99700Copy full SHA for 6f99700
src/hooks/useAccessibility.ts
@@ -266,7 +266,7 @@ export default function useAccessibility<T extends HTMLElement>(
266
// Arrow prevent default to avoid page scroll, not apply for input and textarea
267
if (
268
(ArrowKeys.includes(which) || [HOME, END].includes(which)) &&
269
- !['INPUT', 'TEXTAREA'].includes(e.target.nodeType)
+ !['INPUT', 'TEXTAREA'].includes((e.target as Element).nodeName)
270
) {
271
e.preventDefault();
272
}
0 commit comments