You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using a DatePicker with minDate and correctInvalidDate enabled, the component throws an exception if the date passed in through the date prop is before the minDate.
The exception is: "Invalid time value", thrown by format from date-fns, as used by useDates in DatePickerProvider.
💥 Regression Report
When using a
DatePicker
withminDate
andcorrectInvalidDate
enabled, the component throws an exception if the date passed in through thedate
prop is before theminDate
.The exception is: "Invalid time value", thrown by
format
fromdate-fns
, as used byuseDates
inDatePickerProvider
.Example usage that fails:
Last working version
Worked up to version: 10.55.1
Stopped working in version: 10.56.0
To Reproduce
Steps to reproduce the behavior:
Here is a codesandbox rendering the latest version of Eufemia (10.59.0). It throws an error on render.
https://codesandbox.io/p/sandbox/gracious-waterfall-hc4shr
It's worth noting that on version 10.55.1 we see this in the console:
Expected behavior
I expected the passed-in date to be corrected to today's date, or maybe be unset.
The text was updated successfully, but these errors were encountered: