MCPcopy
hub / github.com/reactjs/react-modal / tabbable

Function tabbable

src/helpers/tabbable.js:71–76  ·  view source on GitHub ↗
(element)

Source from the content-addressed store, hash-verified

69}
70
71function 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
78export default function findTabbableDescendants(element) {
79 const descendants = [].slice

Callers 1

Calls 1

focusableFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…