nathanreyes / v-calendar

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

fix: Spread disabled dates before modifying them #1361

Closed Ubax closed 10 months ago

Ubax commented 10 months ago

Modifying the array passed as a prop can create bugs, that are hard to debug. For example changing minDate will change disabledDates. Especially if the value passed to the prop is computed, it is very hard to spot the problem.

nathanreyes commented 10 months ago

Thanks for the contribution.