Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
ricardomcruz opened this issue Feb 15, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@ricardomcruz
Copy link
Contributor

ricardomcruz commented Feb 15, 2023

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;
@ricardomcruz ricardomcruz added the enhancement New feature or request label Feb 15, 2023
@ricardomcruz ricardomcruz changed the title [FEAT] Datepicker - Disable month navigation when past or future disabled date [FEAT] Datepicker - Disable month navigation when past or future disabled dates Feb 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant