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

Function getScopeRoot

packages/react-aria/src/focus/FocusScope.tsx:286–288  ·  view source on GitHub ↗
(scope: Element[])

Source from the content-addressed store, hash-verified

284}
285
286function getScopeRoot(scope: Element[]) {
287 return scope[0].parentElement!;
288}
289
290function shouldContainFocus(scopeRef: ScopeRef) {
291 let scope = focusScopeTree.getTreeNode(activeScope);

Callers 6

focusNextFunction · 0.85
focusPreviousFunction · 0.85
focusFirstFunction · 0.85
focusLastFunction · 0.85
onKeyDownFunction · 0.85
getFirstInScopeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected