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

Function onBlur

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

Source from the content-addressed store, hash-verified

148 ignoreFocusEvent = true;
149 let isRefocusing = false;
150 let onBlur: EventListener = e => {
151 if (isBlurFromActiveElement(getEventTarget(e) as Element) || isRefocusing) {
152 e.stopImmediatePropagation();
153 }
154 };
155
156 let onFocusOut: EventListener = e => {
157 if (isBlurFromActiveElement(getEventTarget(e) as Element) || isRefocusing) {

Callers 2

onBlurHandlerFunction · 0.70
useFocusWithinFunction · 0.70

Calls 2

getEventTargetFunction · 0.90
isBlurFromActiveElementFunction · 0.85

Tested by

no test coverage detected