Closed avimar closed 3 years ago
https://github.com/6eDesign/svelte-calendar/blob/74f04bba36ec11a12a1a12fd91f15d8db4a5f5bb/src/Components/Datepicker.svelte#L17
I just ran into this issue: Cannot read property 'weeks' of undefined
Cannot read property 'weeks' of undefined
I was not defining an end time, assuming it was open-ended. It's not, it's hardcoded with a date that we're now past.
I'm now using this hacky bit for a 3 month window: start={new Date()} end={new Date(new Date().getTime()+1000*60*60*24*90)}
start={new Date()} end={new Date(new Date().getTime()+1000*60*60*24*90)}
Just noticed this too.
Fixed in version 2.0.x - start and end date defaults have been updated to 1 year ago and 1 year in future, respectively.
2.0.x
https://github.com/6eDesign/svelte-calendar/blob/74f04bba36ec11a12a1a12fd91f15d8db4a5f5bb/src/Components/Datepicker.svelte#L17
I just ran into this issue:
Cannot read property 'weeks' of undefined
I was not defining an end time, assuming it was open-ended. It's not, it's hardcoded with a date that we're now past.
I'm now using this hacky bit for a 3 month window:
start={new Date()} end={new Date(new Date().getTime()+1000*60*60*24*90)}