MCPcopy Index your code
hub / github.com/FlowiseAI/Flowise / handleChange

Function handleChange

packages/ui/src/ui-component/picker/DatePicker.jsx:25–30  ·  view source on GitHub ↗
(e)

Source from the content-addressed store, hash-verified

23 }, [value])
24
25 const handleChange = (e) => {
26 const newValue = e.target.value // "YYYY-MM-DD" or ""
27 setDateValue(newValue)
28 // Propagate as ISO string (end-of-day UTC) so backend can parse it as a Date
29 onChange(newValue ? new Date(newValue).toISOString() : '')
30 }
31
32 return (
33 <Box className={isDark ? 'picker-dark' : ''} sx={{ mt: 1, width: '100%' }}>

Callers

nothing calls this directly

Calls 1

onChangeFunction · 0.50

Tested by

no test coverage detected