Open Gesley opened 5 years ago
There's an issue with moment .endOf('month'). Just replace:
var lastDayOfMonth = firstDayOfMonth.clone().endOf('month'); to var lastDayOfMonth = firstDayOfMonth.clone().add(1, 'months').subtract('days', 1); in generateCalendar().
Here works like a charm. I think there's a better solution, but for now this it's enough.
Like a charm, ok. Live the diversity
thanks
Hello there, thanks for reporting this. Fabiano's trick works well as a temporary workaround but it seems like this is actually an issue to do with the moment library (see https://github.com/moment/moment/issues/4727).
They have a PR awaiting merge so it shouldn't be too long before this gets sorted.
Many thanks,
when i try to select a day in november of a 2020 there are no one days to select.