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

Function isElementInAnyScope

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

Source from the content-addressed store, hash-verified

476}
477
478function isElementInAnyScope(element: Element) {
479 return isElementInChildScope(element);
480}
481
482function isElementInScope(element?: Element | null, scope?: Element[] | null) {
483 if (!element) {

Callers 2

onFocusFunction · 0.85
onKeyDownFunction · 0.85

Calls 1

isElementInChildScopeFunction · 0.85

Tested by

no test coverage detected