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

Function isInert

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

Source from the content-addressed store, hash-verified

51}
52
53function isInert(element: Element): boolean {
54 let node: Element | null = element;
55 while (node != null) {
56 if (node instanceof getOwnerWindow(node).HTMLElement && node.inert) {
57 return true;
58 }
59
60 node = node.parentElement;
61 }
62
63 return false;
64}

Callers 2

isFocusableFunction · 0.85
isTabbableFunction · 0.85

Calls 1

getOwnerWindowFunction · 0.90

Tested by

no test coverage detected