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 a94bb85 commit d8ba4b0Copy full SHA for d8ba4b0
src/util/isInteractiveElement.js
@@ -20,7 +20,11 @@ export const interactiveElementsMap = {
20
return href !== undefined || tabIndex !== undefined;
21
},
22
// This is same as `a` interactivity function
23
- area: attributes => interactiveElementsMap.a(attributes),
+ area: (attributes) => {
24
+ const href = getPropValue(getProp(attributes, 'href'));
25
+ const tabIndex = getTabIndex(getProp(attributes, 'tabIndex'));
26
+ return href !== undefined || tabIndex !== undefined;
27
+ },
28
input: (attributes) => {
29
const typeAttr = getLiteralPropValue(getProp(attributes, 'type'));
30
return typeAttr ? typeAttr.toUpperCase() !== 'HIDDEN' : true;
0 commit comments