Skip to content

Commit 6594beb

Browse files
committed
Fix defect in calling code when building the ElementRoleMap
1 parent fff6f07 commit 6594beb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/elementRoleMap.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ for (let i = 0; i < keys.length; i++) {
2424
if (relation.module === 'HTML') {
2525
const concept = relation.concept;
2626
if (concept) {
27-
const elementRoleRelation: ?ElementARIARoleRelationTuple = elementRoles.find(relation => dequal(relation, concept));
27+
const elementRoleRelation: ?ElementARIARoleRelationTuple = elementRoles.find(relation => dequal(relation[0], concept));
2828
let roles: RoleSet;
2929

3030
if (elementRoleRelation) {

0 commit comments

Comments
 (0)