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

Function getScopeRoot

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

Source from the content-addressed store, hash-verified

300}
301
302function getScopeRoot(scope: Element[]) {
303 return getParentElement(scope[0])!;
304}
305
306function shouldContainFocus(scopeRef: ScopeRef) {
307 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 1

getParentElementFunction · 0.90

Tested by

no test coverage detected