CalendarPicker icon indicating copy to clipboard operation
CalendarPicker copied to clipboard

initialDate.clone is not a function

Open michael-robey opened this issue 3 years ago • 0 comments

When passing a JS date object as an initialDate to <CalendarPicker /> (which is the type of the initialDate prop) I get an error initialDate.clone is not a function. I'm forced to pass in a MomentJS object in instead and type cast as unknown as Date.

Screen Shot 2022-07-19 at 1 35 45 PM

michael-robey avatar Jul 19 '22 17:07 michael-robey