mathieustan / vue-datepicker

A clean datepicker made with VueJs

Home Page:https://vue-datepicker.netlify.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

When max-date is set, 2020 is disabled in the year picker.

riddley opened this issue · comments

VueDatePicker.sitar(v-model="dateRange",range=true,v-bind:max-date="tomorrow",output-format='YYYY-MM-DD',inline=true)

tomorrow(){ const date = new Date(); date.setDate(date.getDate() +1); return date.toISOString().split('T')[0]; },

I'm using 0.2.11.

commented

This came in as a bug report in my app the other day as well. Thanks for narrowing it down to the max-date prop @riddley.

Hi, any solution for this? when set max date, the past year is disabled.

any fix?

I don't need to disable any date so I made this ugly fix:

.vd-picker__years li:disabled,
.vd-picker__years li[disabled] {
    cursor: default;
    color: inherit !important;
    pointer-events: inherit !important;
}