Explorar o código

避免tabindex为-1的元素干扰读屏

任一存 %!s(int64=3) %!d(string=hai) anos
pai
achega
86559b2389
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      web/src/utils.js

+ 1 - 1
web/src/utils.js

@@ -185,7 +185,7 @@ function __focusNextFocusableNode(treeWalker) {
     }
     if (nextNode.focus) {
       nextNode.focus()
-      if (document.activeElement === nextNode) {
+      if (document.activeElement === nextNode && nextNode.tabIndex !== -1) {
         return true
       }
     }