Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug Report][3.6.6] VCalendar doesn't respect weekdays order #19815

Open
thany opened this issue May 15, 2024 · 2 comments
Open

[Bug Report][3.6.6] VCalendar doesn't respect weekdays order #19815

thany opened this issue May 15, 2024 · 2 comments

Comments

@thany
Copy link

thany commented May 15, 2024

Environment

Vuetify Version: 3.6.6
Last working version: 2.7.2
Vue Version: 3.4.27
Browsers: Firefox 126.0
OS: Windows 10

Steps to reproduce

Put a calendar and add weekdays [ 3,4,5,6,0,1,2 ]

Expected Behavior

I get to see the weekdays:
wednesday,thursday,friday,saturday,sunday,monday,tuesday

Actual Behavior

It seems the weekdays array is ordered before being displayed.

Reproduction Link

https://play.vuetifyjs.com/#...

Other comments

We need this for a week view, where the current day is always the first one. The only way I know how to do this, is to supply a specific array of weekdays that starts at today's weekday and sort of "counts through" the weekend if neccesary. This used to work fine in Vuetify 2.

The calendar always starts at sunday (which is ironically part of the weekend in almost every culture) whatever the order the weekdays are given, probably because it's represented by 0 and the weekdays are just displayed in numerical order. But then why would you make this prop an array? Array props are typically used for this exact scenario: for when order matters.

@thany
Copy link
Author

thany commented May 24, 2024

Can I just ask why there's no response? Do you need more information, context, help? I mean, just ask if anything is not clear. I can't know what more information to provide, if you're not asking for it.

@blalan05
Copy link
Member

I'm a volunteer developer, working in open source as work and life permit. This is a bug, the weekdays prop is behaving as expected in the month view, just not the week view. I will look into this further and provide a fix in time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants