Skip to content

[FEAT] Datepicker - Disable month navigation when past or future disabled dates #621

@ricardomcruz

Description

@ricardomcruz

Is your feature request related to a problem? Please describe.

When all the previous or following dates of the current selected are disabled, there is no value in being possible to navigate between months.
In fact it harms the user experience because it gives the feeling to the user that there are available dates in the previous/following months.

Describe the solution you'd like

  • If disablePastFrom, disable all previous months since the first that have all dates disabled;
  • If disablePastDates, disable all previous months regarding the current month;
  • If disableFutureFrom, disable all following months since the first that have all dates disabled;
  • If disableFutureDates, disable all following months regarding the current month;

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions