Closed dBianchii closed 3 months ago
I managed to "fix" it by changing the onSelect
to onDayClick
It's caused by an update in react-hook-form, pinning to 7.44.3 helps (see https://github.com/shadcn/ui/issues/735#issuecomment-1609416635)
I managed to "fix" it by changing the
onSelect
toonDayClick
Thanks! This helped me to avoid that error. How did you get to making that change?
I managed to "fix" it by changing the
onSelect
toonDayClick
Hero
This issue has been automatically closed because it received no activity for a while. If you think it was closed by accident, please leave a comment. Thank you.
Hello! Is there an update for this? I encountered the same issue with the calendar component.
my react-day-picker version:
"react-day-picker": "^8.10.1",
@0xCyyy3000 selected={field.value ? new Date(field.value) : undefined}
I am trying to use the Calendar picker with react hook form. At the end of this page they have an example of how to do it - https://ui.shadcn.com/docs/components/date-picker#react-hook-form
I copied the exact same page to my vscode, but I keep getting this error:
Here's the full code: