Skip to content

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

Closed
@DmitryTar1

Description

@DmitryTar1

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions