diff --git a/src/lib/datepicker/Datepicker.svelte b/src/lib/datepicker/Datepicker.svelte index 1d83c756c..88d7d1b1f 100644 --- a/src/lib/datepicker/Datepicker.svelte +++ b/src/lib/datepicker/Datepicker.svelte @@ -92,7 +92,7 @@ let start = firstDay.getDay() - firstDayOfWeek; if (start < 0) start += 7; for (let i = 0; i < start; i++) { - daysArray.push(new Date(year, month, -i)); + daysArray.unshift(new Date(year, month, -i)); } // Add days of the current month