Skip to content
This repository was archived by the owner on Dec 7, 2022. It is now read-only.

Commit 3c23a70

Browse files
author
Alice Boxhall
committed
Remove dangling if-statement causing many false positive in UnfocusableElementsWithOnclick
1 parent 8e35d64 commit 3c23a70

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

src/audits/UnfocusableElementsWithOnClick.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ axs.AuditRule.specs.unfocusableElementsWithOnClick = {
3232
return false;
3333
}
3434
if (axs.utils.isElementOrAncestorHidden(element)) {
35-
if (element.className == 'selected')
3635
return false;
3736
}
3837
var eventListeners = getEventListeners(element);

0 commit comments

Comments
 (0)