Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
riddley opened this issue Mar 22, 2021 · 4 comments · May be fixed by #98
Open

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

riddley opened this issue Mar 22, 2021 · 4 comments · May be fixed by #98

Comments

@riddley
Copy link

riddley commented Mar 22, 2021

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.

@iKlsR
Copy link

iKlsR commented Jul 8, 2021

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.

@anfelipeloal
Copy link

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

@alejandrosobko
Copy link

any fix?

@alejandrosobko
Copy link

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

@elyse0 elyse0 linked a pull request Oct 17, 2021 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants