Skip to content

Months are selectable even if the selected year is out of range #1145

@spider-hand

Description

@spider-hand

Describe the bug
Months are selectable even if the selected year is out of range on month-picker mode.

To Reproduce

  1. Set year-range and month-picker:
<Datepicker v-model="selectedDate" placeholder="Select Date" :year-range="[2025, 2025]" month-picker />
  1. Select a year which is out of the range (e.g. 2026)
  2. The months are selectable.

Expected behavior
Months should also be disabled just as dates are disabled under the same condition.

Screenshots

current.mov

Metadata

Metadata

Assignees

No one assigned

    Labels

    awaiting triageThe issue is not reviewed by the maintainersbugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions