MCPcopy Index your code
hub / github.com/adobe/react-spectrum / getScopeRoot

Function getScopeRoot

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

Source from the content-addressed store, hash-verified

283}
284
285function getScopeRoot(scope: Element[]) {
286 return scope[0].parentElement!;
287}
288
289function shouldContainFocus(scopeRef: ScopeRef) {
290 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