From 6594bebf4fe63f00bea70922c2cf416f2053e160 Mon Sep 17 00:00:00 2001 From: Sam Saccone Date: Thu, 4 Jul 2024 12:17:55 -0700 Subject: [PATCH] Fix defect in calling code when building the ElementRoleMap --- src/elementRoleMap.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/elementRoleMap.js b/src/elementRoleMap.js index b8df9e9..c567e43 100644 --- a/src/elementRoleMap.js +++ b/src/elementRoleMap.js @@ -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) {