MCPcopy
hub / github.com/adobe/react-spectrum / isTabbable

Function isTabbable

packages/react-aria/src/utils/isFocusable.ts:47–51  ·  view source on GitHub ↗
(element: Element)

Source from the content-addressed store, hash-verified

45}
46
47export function isTabbable(element: Element): boolean {
48 return (
49 element.matches(TABBABLE_ELEMENT_SELECTOR) && isElementVisible(element) && !isInert(element)
50 );
51}
52
53function isInert(element: Element): boolean {
54 let node: Element | null = element;

Callers 3

useGridListItemFunction · 0.90
onKeyDownFunction · 0.90

Calls 2

isElementVisibleFunction · 0.90
isInertFunction · 0.85

Tested by

no test coverage detected