(element)
| 69 | } |
| 70 | |
| 71 | function tabbable(element) { |
| 72 | let tabIndex = element.getAttribute("tabindex"); |
| 73 | if (tabIndex === null) tabIndex = undefined; |
| 74 | const isTabIndexNaN = isNaN(tabIndex); |
| 75 | return (isTabIndexNaN || tabIndex >= 0) && focusable(element, !isTabIndexNaN); |
| 76 | } |
| 77 | |
| 78 | export default function findTabbableDescendants(element) { |
| 79 | const descendants = [].slice |
no test coverage detected
searching dependent graphs…