diff --git a/src/vanilla-calendar.js b/src/vanilla-calendar.js index 86eee302..0b87e33f 100644 --- a/src/vanilla-calendar.js +++ b/src/vanilla-calendar.js @@ -404,11 +404,12 @@ export default class VanillaCalendar { for (const day in this.popups) { if (Object.hasOwnProperty.call(this.popups, day)) { const dayBtnEl = daysEl.querySelector(`[data-calendar-day="${day}"]`); - if (!dayBtnEl) return; - const dayInfo = this.popups[day]; - dayBtnEl.classList.add(dayInfo.modifier); - dayBtnEl.parentNode.innerHTML += `