Skip to content

Commit 56bafb1

Browse files
mattdavenportcolinmollenhour
authored andcommitted
Fix date selection when current date is disabled. (#327)
1 parent 1e29f23 commit 56bafb1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

js/calendar/calendar.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1246,6 +1246,8 @@ Calendar.prototype._init = function (firstDayOfWeek, date) {
12461246
}
12471247
if (weekend.indexOf(wday.toString()) != -1)
12481248
cell.className += cell.otherMonth ? " oweekend" : " weekend";
1249+
} else {
1250+
this.currentDateEl = cell;
12491251
}
12501252
}
12511253
if (!(hasdays || this.showsOtherMonths))

0 commit comments

Comments
 (0)