You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When a Calendar is created with a locale that has Mondays as firstDay, such as en-GB, it skips the first day of the month when it is a Monday (when viewing the previous month). You only see this when fixedWeek: true is set as true, otherwise the last row is not rendered, of course.
It is difficult to explain well but I have a reproduction: stackblitz.com/edit/github-qbikvw. If you view June 2024, for example, you will see that the bottom row skips 1 July and shows 2-8 July (even though it should only go until 7 July). Or you can go to August 2025 where you see that the bottom row again skips 1 September.
Edit: this is still a problem with locales that have Sundays as firstDay (see August 2024 with the locale set to 'en-US')
Describe the bug
When a Calendar is created with a locale that has Mondays as firstDay, such as en-GB, it skips the first day of the month when it is a Monday (when viewing the previous month). You only see this whenfixedWeek: true
is set as true, otherwise the last row is not rendered, of course.It is difficult to explain well but I have a reproduction: stackblitz.com/edit/github-qbikvw. If you view June 2024, for example, you will see that the bottom row skips 1 July and shows 2-8 July (even though it should only go until 7 July). Or you can go to August 2025 where you see that the bottom row again skips 1 September.
Edit: this is still a problem with locales that have Sundays as firstDay (see August 2024 with the locale set to 'en-US')
Reproduction
https://stackblitz.com/edit/github-qbikvw?file=src/lib/components/Calendar.svelte
Logs
No response
System Info
Severity
blocking an upgrade
The text was updated successfully, but these errors were encountered: