nathanreyes / v-calendar

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

[Bug] min and max page works incorrectly for year disabling #1448

Open AlekseyPn opened 7 months ago

AlekseyPn commented 7 months ago

Hello. When I use minPage and maxPage, and set for minPage for example {year: 2019, month: 1} in header 2018 is still available for select. I tried get some debug for this problem, and found that when canMove called with {year: 2018, month: 12 }, pagesInRange array resolves as [{year: 2018, month: 12}, {year: 2019, month: 1}] and for this some method resolves as true, but thats incorrectly. And minDate maxDate works same way