diff --git a/src/definitions/modules/calendar.js b/src/definitions/modules/calendar.js index 6141751082..45f110b0c8 100644 --- a/src/definitions/modules/calendar.js +++ b/src/definitions/modules/calendar.js @@ -424,7 +424,7 @@ cell.data(metadata.date, cellDate); let adjacent = isDay && cellDate.getMonth() !== ((month + 12) % 12); let disabled = (!settings.selectAdjacentDays && adjacent) || !module.helper.isDateInRange(cellDate, mode) || settings.isDisabled(cellDate, mode) || module.helper.isDisabled(cellDate, mode) || !module.helper.isEnabled(cellDate, mode); - var eventDate; + let eventDate = null; if (disabled) { let disabledDate = module.helper.findDayAsObject(cellDate, mode, settings.disabledDates); if (disabledDate !== null && disabledDate[metadata.message]) {