vue-datepicker icon indicating copy to clipboard operation
vue-datepicker copied to clipboard

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

Open riddley opened this issue 3 years ago • 4 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.

riddley avatar Mar 22 '21 17:03 riddley

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.

iKlsR avatar Jul 08 '21 15:07 iKlsR

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

anfelipeloal avatar Jul 21 '21 19:07 anfelipeloal

any fix?

alejandrosobko avatar Aug 02 '21 14:08 alejandrosobko

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;
}

alejandrosobko avatar Aug 20 '21 15:08 alejandrosobko