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