Skip to content

[Feature request] Min/Max date ranges that disable arrows, hide invalid months/years. #628

Open
@Billiam

Description

@Billiam

The disabledDate API works great for discrete ranges of date, but it would be nice to be able to disable dates in such a way that next/previous arrows are also disabled, and to hide invalid months or years in the date picker that fall outside of the range.

For example: When entering birthdate, dates in the future may not be needed. When scheduling an appointment, dates in the past may not be needed.

Ideally, setting a maxDate to new Date() would:

  • Disable the rest of days in the current month
  • Disable the next / double next arrows
  • Hide future months in the month picker
  • Hide future years in the year picker

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions