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

Function isElementInAnyScope

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

Source from the content-addressed store, hash-verified

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

Callers 2

onFocusFunction · 0.85
onKeyDownFunction · 0.85

Calls 1

isElementInChildScopeFunction · 0.85

Tested by

no test coverage detected