Vuepic / vue-datepicker

Datepicker component for Vue 3
https://vue3datepicker.com
MIT License
1.48k stars 147 forks source link

No dp__overlay_cell_disabled class with filters props on a month-picker #769

Closed WaNNTaD closed 7 months ago

WaNNTaD commented 7 months ago

I think there is a problem with filters when it's about month-picker. Indeed, I give an array with my month in int to filters and it works but impossible to select dates from my array and they don't take the "dp__overlay_cell_disabled " class like min and max date. Did I forget something or it's an issue?

Here is my code:

<VueDatePicker v-model="date" :format-locale="fr" month-picker name="date-picker" :action-row="{showSelect: false, showCancel: false, showPreview:false}" auto-apply :min-date="startDate" :max-date="endDate" prevent-min-max-navigation :filters="filters"></VueDatePicker>

`computed: { filters(){ if(this.perdate == null){ return null } const currentDate = new Date() const perdate=Object.values(this.perdate); return { months: perdate.map((item) => getMonth(addMonths(currentDate, item))) }; }

},`