Closed sadik-malik closed 1 month ago
The latest updates on your projects. Learn more about Vercel for Git ↗︎
Name | Status | Preview | Comments | Updated (UTC) |
---|---|---|---|---|
react-hook-form-material-ui | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | Oct 17, 2024 5:38pm |
320
When date values were provided as strings, internal validation was performed on the string instead of a
Date
object, causing the following components to throw console errors:DatePickerElement
DateTimePickerElement
MobileDatePickerElement
TimePickerElement
This PR fixes the issue by transforming the value into a
Date
object before performing validation.Additional Notes
@dohomi, it might be worth considering changing the default behavior to stop accepting string values for
x-date-pickers
, as MUI's date picker components themselves do not accept strings by default.