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

Function onBlur

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

Source from the content-addressed store, hash-verified

154 ignoreFocusEvent = true;
155 let isRefocusing = false;
156 let onBlur: EventListener = e => {
157 if (isBlurFromActiveElement(getEventTarget(e) as Element) || isRefocusing) {
158 e.stopImmediatePropagation();
159 }
160 };
161
162 let onFocusOut: EventListener = e => {
163 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