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

Function onFocus

packages/react-aria/src/interactions/utils.ts:176–180  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

174 };
175
176 let onFocus: EventListener = e => {
177 if (isFocusMovingToTarget(getEventTarget(e) as Element) || isRefocusing) {
178 e.stopImmediatePropagation();
179 }
180 };
181
182 let onFocusIn: EventListener = e => {
183 if (isFocusMovingToTarget(getEventTarget(e) as Element) || isRefocusing) {

Callers

nothing calls this directly

Calls 2

getEventTargetFunction · 0.90
isFocusMovingToTargetFunction · 0.85

Tested by

no test coverage detected