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

Function isElementInAnyScope

packages/react-aria/src/focus/FocusScope.tsx:494–496  ·  view source on GitHub ↗
(element: Element)

Source from the content-addressed store, hash-verified

492}
493
494function isElementInAnyScope(element: Element) {
495 return isElementInChildScope(element);
496}
497
498function isElementInScope(element?: Element | null, scope?: Element[] | null) {
499 if (!element) {

Callers 2

onFocusFunction · 0.85
onKeyDownFunction · 0.85

Calls 1

isElementInChildScopeFunction · 0.85

Tested by

no test coverage detected