nathanreyes / v-calendar

An elegant calendar and datepicker plugin for Vue.
https://vcalendar.io
MIT License
4.32k stars 840 forks source link

Disabled dates not working properly when alternating #1452

Open peirix opened 4 months ago

peirix commented 4 months ago

I have an issue where I'm trying to set up a datepicker where every other week, some days should not be able to pick. I tried setting firstDayOfWeek to 1, but the same error persists. I've made a vue playground where I was able to recreate my issue: https://playcode.io/1781466

As you can see, it is alternating between disabling saturday and sunday instead of having them on the same week. And if you try to click on one of them, you can see that it's also the disabled one that is selectable.