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

Method getTreeNode

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

Source from the content-addressed store, hash-verified

1021 }
1022
1023 getTreeNode(data: ScopeRef): TreeNode | undefined {
1024 return this.fastMap.get(data);
1025 }
1026
1027 addTreeNode(scopeRef: ScopeRef, parent: ScopeRef, nodeToRestore?: FocusableElement): void {
1028 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