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
Description
I use the calendar in the "weekly" view and "first-day-of-week"=2, when I try to switch to the previous week - the transition is carried out immediately two weeks ago.
Example
The number of the current week is 45, and as soon as I click on the navigation arrow (go back) I will switch to week 43 (expected result -> week 44). I tried to change the calendar configuration, but I didn't get the expected result. How can I solve this problem?
Initial state
State after clicking on the navigation arrow (go back)
My config: <VCalendar ref="calendar" locale="en" view="weekly" transparent borderless title-position="left" :first-day-of-week="2" expanded show-weeknumbers />
It may be useful, if you set "first-day-of-week"=1, the navigation will work correctly.
The text was updated successfully, but these errors were encountered:
I have similar issue.
In my case, if this week is the last week of this month and the first week of next month (like above pictures), prev button works fine, but when I click next button same week shows twice.
const date = ref(new Date('2023-11-28'))
const calendarRef = ref(null)
<Calendar
view="weekly"
:first-day-of-week="7" // other numbers work fine
ref="calendarRef"
v-model="date"
mode="date"
expanded
/>
At first, calendarRef.value.pages[0].id is "2023-11-w5", and after clicking next button,calendarRef.value.pages[0].id is "2023-12-w1", but calendarRef.value.pages[0].viewDays is same as before, so the week shows twice.
So I think the combination of specific week(the last week of current month and also the first week of next month) (or specific day) and specific first-of-day-week might cause navigation issues.
Description
I use the calendar in the "weekly" view and "first-day-of-week"=2, when I try to switch to the previous week - the transition is carried out immediately two weeks ago.
Example
The number of the current week is 45, and as soon as I click on the navigation arrow (go back) I will switch to week 43 (expected result -> week 44). I tried to change the calendar configuration, but I didn't get the expected result. How can I solve this problem?
Initial state
![image](https://private-user-images.githubusercontent.com/61310403/280325388-353c34a9-e04b-497e-b675-9f6a31e5e8bf.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTk3NTI0OTUsIm5iZiI6MTcxOTc1MjE5NSwicGF0aCI6Ii82MTMxMDQwMy8yODAzMjUzODgtMzUzYzM0YTktZTA0Yi00OTdlLWI2NzUtOWY2YTMxZTVlOGJmLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA2MzAlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNjMwVDEyNTYzNVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTkwMWQzYjAzMTcwODg3ZTExMzE2NThmYjIyMTkxMTljZmE2MjU3ODlkMjFjMDA5ZWY2OTY0ZTYxNTZiOTM4OGUmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.WbSau7oSF95Ko9W9FSiPdG0Zyf2U7j9Fe_CgH7HpKDA)
State after clicking on the navigation arrow (go back)
![image (1)](https://private-user-images.githubusercontent.com/61310403/280325876-c9794c78-69d1-43ce-a464-1b40f933fcac.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTk3NTI0OTUsIm5iZiI6MTcxOTc1MjE5NSwicGF0aCI6Ii82MTMxMDQwMy8yODAzMjU4NzYtYzk3OTRjNzgtNjlkMS00M2NlLWE0NjQtMWI0MGY5MzNmY2FjLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA2MzAlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNjMwVDEyNTYzNVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTgwMzViODJmNzhjMGIwZWM5NjU4YjU2ZTAyZWNmNmU4Yzk1ZWU1ZDdlMGQ3ZGJmYzY4MGFlZWU0N2YzODAwM2UmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.HuD2cTI85B5_SaonX0B1HKkfRVC-GW7hCxdPN3At7sk)
My config:
<VCalendar ref="calendar" locale="en" view="weekly" transparent borderless title-position="left" :first-day-of-week="2" expanded show-weeknumbers />
It may be useful, if you set "first-day-of-week"=1, the navigation will work correctly.
The text was updated successfully, but these errors were encountered: