Skip to content

Commit 200ee9a

Browse files
committed
Updated matcher had a bug
1 parent 9dd6ea0 commit 200ee9a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/rules/autocomplete-a11y-matches.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ function nodeIsASearchFunctionality(node, currLevel=0, maxLevels=4) {
4545
if(regex.test(details)) {
4646
return true;
4747
} else {
48-
currentLevelSearch(node.parentElement, currentLevel + 1);
48+
return currentLevelSearch(node.parentElement, currentLevel + 1);
4949
}
5050
}
5151
return currentLevelSearch(node, currLevel);

0 commit comments

Comments
 (0)