vue-datepicker
vue-datepicker copied to clipboard
When max-date is set, 2020 is disabled in the year picker.
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.
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;
}