fix: load the new month's events when a day from another month is clicked in the calendar

This commit is contained in:
silentoplayz 2026-09-24 02:58:58 -04:00
parent bbfa876afd
commit 460dbac1e7

View file

@ -120,6 +120,7 @@
function handleDayClick(day: Date) {
currentDate = day;
dispatch('navigate', { date: currentDate });
const ms = new Date(day.getFullYear(), day.getMonth(), day.getDate(), 9).getTime();
dispatch('createEvent', { start_at: ms * NS });
}