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

Function onChange

packages/react-stately/src/datepicker/useTimeFieldState.ts:83–85  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

81 [defaultValue]
82 );
83 let onChange = newValue => {
84 setValue(day || defaultValueTimeZone ? newValue : newValue && toTime(newValue));
85 };
86
87 let state = useDateFieldState({
88 ...props,

Callers

nothing calls this directly

Calls 2

toTimeFunction · 0.90
setValueFunction · 0.70

Tested by

no test coverage detected