Skip to content

Commit 6a048da

Browse files
committedJun 19, 2024
[Fix] ensure summary remains non-interactive
See 75d5dd7
1 parent 75d5dd7 commit 6a048da

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed
 

‎src/util/isInteractiveElement.js

+6
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,12 @@ function checkIsInteractiveElement(tagName, attributes): boolean {
8282
&& attributesComparator(elementSchema.attributes, attributes)
8383
);
8484
}
85+
86+
// TODO: remove this when aria-query and axobject-query are upgraded
87+
if (tagName === 'summary') {
88+
return false;
89+
}
90+
8591
// Check in elementRoles for inherent interactive role associations for
8692
// this element.
8793
const isInherentInteractiveElement = some(iterFrom(interactiveElementRoleSchemas), elementSchemaMatcher);

0 commit comments

Comments
 (0)
Please sign in to comment.