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

Function onFocus

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

Source from the content-addressed store, hash-verified

168 };
169
170 let onFocus: EventListener = e => {
171 if (isFocusMovingToTarget(getEventTarget(e) as Element) || isRefocusing) {
172 e.stopImmediatePropagation();
173 }
174 };
175
176 let onFocusIn: EventListener = e => {
177 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