Closed as not planned
Description
I get the following error when using the arrow keys to change dates.
Failed prop type: Invalid prop `value` of type `number` supplied to `MinuteInput`, expected `string`.
My onChange function updates a state value which then renders out in the DateTimePicker.
export const DateTimePickerDialog = (props) => {
const [datetime, setDatetime] = useState(props.datetime);
return (
<DateTimePicker
maxDate={props.maxDatetime}
minDate={props.minDatetime}
value={datetime}
onChange={setDatetime}
/>
);
};
I cannot control what values get passed to the child components so is there something im missing?