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

Function onFocusWithin

packages/react-aria/src/datepicker/useDateField.ts:106–109  ·  view source on GitHub ↗
(e)

Source from the content-addressed store, hash-verified

104 let {focusWithinProps} = useFocusWithin({
105 ...props,
106 onFocusWithin(e) {
107 valueOnFocus.current = state.value;
108 props.onFocus?.(e);
109 },
110 onBlurWithin: e => {
111 state.confirmPlaceholder();
112 if (state.value !== valueOnFocus.current) {

Callers 1

useFocusWithinFunction · 0.85

Calls 1

onFocusMethod · 0.80

Tested by

no test coverage detected