MCPcopy Create free account
hub / github.com/adobe/react-spectrum / isInert

Function isInert

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

Source from the content-addressed store, hash-verified

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

Callers 2

isFocusableFunction · 0.85
isTabbableFunction · 0.85

Calls 2

getOwnerWindowFunction · 0.90
getParentElementFunction · 0.90

Tested by

no test coverage detected