Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix defect in calling code when building the ElementRoleMap
Browse files Browse the repository at this point in the history
samccone committed Jul 4, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent fff6f07 commit 6594beb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/elementRoleMap.js
Original file line number Diff line number Diff line change
@@ -24,7 +24,7 @@ for (let i = 0; i < keys.length; i++) {
if (relation.module === 'HTML') {
const concept = relation.concept;
if (concept) {
const elementRoleRelation: ?ElementARIARoleRelationTuple = elementRoles.find(relation => dequal(relation, concept));
const elementRoleRelation: ?ElementARIARoleRelationTuple = elementRoles.find(relation => dequal(relation[0], concept));
let roles: RoleSet;

if (elementRoleRelation) {

0 comments on commit 6594beb

Please sign in to comment.