material-ui
material-ui copied to clipboard
trouble with datePicker defaultDate parameter
Hi,
I'm not able to change "defaultDate" parameter, it remains setted on today's date. I've tried to set "value", "minDate" and "maxDate" parameters with the same date type variable and work well, the problem seems to be only on "defaultDate" parameter.
Thanks
The defaultDate property is supposed to only be used during the first render.
If you need to change the date later, the DatePicker need to behave like a controlled component.
Hence, I think that it should be handled by the date property. I'm not sure this is implemented.