Skip to content

Commit

Permalink
Fix defect in calling code when building the ElementRoleMap
Browse files Browse the repository at this point in the history
  • Loading branch information
samccone committed Jul 4, 2024
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
Expand Up @@ -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) {
Expand Down

0 comments on commit 6594beb

Please sign in to comment.