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

Method getTreeNode

packages/react-aria/src/focus/FocusScope.tsx:1028–1030  ·  view source on GitHub ↗
(data: ScopeRef)

Source from the content-addressed store, hash-verified

1026 }
1027
1028 getTreeNode(data: ScopeRef): TreeNode | undefined {
1029 return this.fastMap.get(data);
1030 }
1031
1032 addTreeNode(scopeRef: ScopeRef, parent: ScopeRef, nodeToRestore?: FocusableElement): void {
1033 let parentNode = this.fastMap.get(parent ?? null);

Callers 7

FocusScopeFunction · 0.80
shouldContainFocusFunction · 0.80
isElementInChildScopeFunction · 0.80
isAncestorScopeFunction · 0.80
shouldRestoreFocusFunction · 0.80
onKeyDownFunction · 0.80
useRestoreFocusFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected