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

Function onFocusWithin

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

Source from the content-addressed store, hash-verified

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

Callers 1

useFocusWithinFunction · 0.85

Calls 1

onFocusMethod · 0.80

Tested by

no test coverage detected