From 91210e9ab2b5989235588c17ed3bc8863485051a Mon Sep 17 00:00:00 2001 From: ahmedhalac Date: Tue, 19 Nov 2024 22:44:53 +0100 Subject: [PATCH] fix(#4632): Fixed tabindex condition Related to #4632 --- lib/rules/autocomplete-matches.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/rules/autocomplete-matches.js b/lib/rules/autocomplete-matches.js index 9ae286df2c..69f678e73f 100644 --- a/lib/rules/autocomplete-matches.js +++ b/lib/rules/autocomplete-matches.js @@ -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)