Open tokumaci opened 3 years ago
Yes
Because of arrays start from zero and zero number returns false in if condition generateCalendar function can not work for first month January. If you disable if (!month) month condition, calender will work also for january.
Just replace 23rd line:
if (!month && month != '0') month = currDate.getMonth()
if (!month && month !== 0) month = currDate.getMonth()
Add this issue will be solved for January month
Yes
Because of arrays start from zero and zero number returns false in if condition generateCalendar function can not work for first month January. If you disable if (!month) month condition, calender will work also for january.