Skip to content

Commit

Permalink
[Fix] ensure summary remains non-interactive
Browse files Browse the repository at this point in the history
  • Loading branch information
ljharb committed Jun 19, 2024
1 parent 75d5dd7 commit 6a048da
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/util/isInteractiveElement.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,12 @@ function checkIsInteractiveElement(tagName, attributes): boolean {
&& attributesComparator(elementSchema.attributes, attributes)
);
}

// TODO: remove this when aria-query and axobject-query are upgraded
if (tagName === 'summary') {
return false;
}

// Check in elementRoles for inherent interactive role associations for
// this element.
const isInherentInteractiveElement = some(iterFrom(interactiveElementRoleSchemas), elementSchemaMatcher);
Expand Down

0 comments on commit 6a048da

Please sign in to comment.