You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I found a bug when using selected days, the issue is that you use time to keep track of selected days, but you use it's TIME, without reseting the hour of the date element, whereas you do reset it when checking whether it is a selected day or not. This causes some days to not being marked as selected when drawing the calendar.
I'm attaching some examples.
A fix to that would be reseting the hours when you get the visible dates at:
JsCalendar.prototype._getVisibleDates=function(date){// ...// Set day to month's firstday=newDate(first.getTime());day.setHours(0,0,0,0);// This month's daysdo{// Add page on back of the listdates.push(newDate(day.getTime()));// Calculate next dayday.setDate(day.getDate()+1);day.setHours(0,0,0,0);// Repeat until next month}while(day.getDate()!==1);// ...
Best regards,
Etoh.
The text was updated successfully, but these errors were encountered:
Hello, how you doing?
I found a bug when using selected days, the issue is that you use time to keep track of selected days, but you use it's TIME, without reseting the hour of the date element, whereas you do reset it when checking whether it is a selected day or not. This causes some days to not being marked as selected when drawing the calendar.
I'm attaching some examples.
A fix to that would be reseting the hours when you get the visible dates at:
Best regards,
Etoh.
The text was updated successfully, but these errors were encountered: