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

Function stopPropagation

packages/react-aria/src/focus/FocusScope.tsx:131–131  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

129 let node = startRef.current?.nextSibling!;
130 let nodes: Element[] = [];
131 let stopPropagation = e => e.stopPropagation();
132 while (node && node !== endRef.current) {
133 nodes.push(node as Element);
134 // Stop custom restore focus event from propagating to parent focus scopes.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected