Skip to content

Commit

Permalink
fix(#4632): Fixed tabindex condition
Browse files Browse the repository at this point in the history
Related to #4632
  • Loading branch information
ahmedhalac committed Nov 19, 2024
1 parent 77f88ae commit 91210e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/rules/autocomplete-matches.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ function autocompleteMatches(node, virtualNode) {

// The element is **not** visible on the page or exposed to assistive technologies
if (
tabIndex === '-1' &&
tabIndex < 0 &&
virtualNode.actualNode &&
!isVisibleOnScreen(virtualNode) &&
!isVisibleToScreenReaders(virtualNode)
Expand Down

0 comments on commit 91210e9

Please sign in to comment.