Skip to content

year-picker with allowed-dates prop does not correctly style the disabled value #1047

Closed
@nondotxyz

Description

@nondotxyz

Describe the bug
The allowed-dates property works fine as it does not let me select any disallowed dates but the styling within year-picker is still allowing it to be picked before being selected, and without any attributes that indicates which values are disabled, this cannot be easily rectify with simple CSS.

To Reproduce
Put both the year-picker props with allowed-dates.

<Datepicker v-model="date" year-picker :allowed-dates="['2024']" />

This can be easily replicated within the playground and any other machine without any further adjustment.

Expected behavior
The datepicker correctly stylized disabled values and does not let me pick them for selection.

Desktop & mobile (please complete the following information):

  • Browser [Firefox]
  • Library version [^8.8.1]

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