react-datetime-picker
react-datetime-picker copied to clipboard
UI fields do not represent the inner date value; inner date value is below minimumDate
trafficstars
Summary: there are three dates and they're all out of sync with each other: minDate, value, and the UI's date.
Suppose you have a datetime-picker with a minimum datetime. You will be unable to change the date part to be before the minimum, but you will be able to update the time portion to be before the minimum. The end result: value is before minDate (barely), and the UI shows a different date as well.
The three dates in my example are as below. A screenshot with the UI and React Dev Tools shows these values.
| field | value |
|---|---|
| minDate | 2020-07-02T11:22:26 |
| value | 2020-07-02T11:21:59 |
| UI | 2020-07-02T01:21 (seconds omitted via maxDetail prop) |
