Przeglądaj źródła

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

任一存 3 lat temu
rodzic
commit
86559b2389
1 zmienionych plików z 1 dodań i 1 usunięć
  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
       }
     }