Skip to content

Commit

Permalink
Update Datepicker.svelte
Browse files Browse the repository at this point in the history
fix days of previous month shown in wrong order
  • Loading branch information
cimagle authored Nov 26, 2024
1 parent 6542fdb commit a1d3b17
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/datepicker/Datepicker.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a1d3b17

Please sign in to comment.