vuetifyjs / vuetify

🐉 Vue Component Framework
https://vuetifyjs.com
MIT License
39.83k stars 6.97k forks source link

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

Open thany opened 5 months ago

thany commented 5 months ago

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 commented 5 months ago

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 commented 5 months ago

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.