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

Allowed dates styles are missing for month picker for years that aren't passed #1035

Open
DmitryTar1 opened this issue Nov 6, 2024 · 0 comments
Labels
awaiting triage The issue is not reviewed by the maintainers bug Something isn't working

Comments

@DmitryTar1
Copy link

Describe the bug
Allowed dates styles are missing for month picker for years that aren't passed as allowedDates.
It's related to #1008
Now months disabled only if passed at least one month in that year.

To Reproduce
Steps to reproduce the behavior:

  1. Use code from documentation https://vue3datepicker.com/props/calendar-configuration/#allowed-dates
  2. Set allowed dates to different years, e.g. ['2018-01-01', '2016-01-01', '2019-05-01']
  3. When you open year 2017 or any year that aren't in the array, they all doesn't have style to show that they aren't selectable.

Expected behavior
All years that are displayed will have styles for months to show that they aren't selectable if they aren't in the array of allowed dates.

Screenshots
Screenshot 2024-11-06 at 15 14 50
Screenshot 2024-11-06 at 15 15 07

Desktop & mobile (please complete the following information):

  • Browser chrome, but I suppose all
  • Library version 10.0.0
@DmitryTar1 DmitryTar1 added awaiting triage The issue is not reviewed by the maintainers bug Something isn't working labels Nov 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
awaiting triage The issue is not reviewed by the maintainers bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant