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

Function onBlur

packages/react-aria/src/select/useSelect.ts:244–258  ·  view source on GitHub ↗
(e: FocusEvent)

Source from the content-addressed store, hash-verified

242 state.setFocused(true);
243 },
244 onBlur(e: FocusEvent) {
245 if (state.isOpen) {
246 return;
247 }
248
249 if (props.onBlur) {
250 props.onBlur(e);
251 }
252
253 if (props.onFocusChange) {
254 props.onFocusChange(false);
255 }
256
257 state.setFocused(false);
258 }
259 }),
260 valueProps: {
261 id: valueId

Callers

nothing calls this directly

Calls 2

onBlurMethod · 0.80
setFocusedMethod · 0.65

Tested by

no test coverage detected