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

Future month gets displayed in range mode ignoring the set "maxDate" #309

Open
SPeterFront opened this issue Aug 28, 2024 · 1 comment
Open

Comments

@SPeterFront
Copy link

If using the datepicker in range mode and if a max date gets set, the picker displays the next (future) month as well with all days disabled, which does not make sense.

How to reproduce:

  • Use datepicker with "range" mode
  • Set "maxDate"
  • When the picker gets opened, the next month (exceeding the max date) also gets displayed (all days are disabled though and you can not go one more month further into the future). It is also possible to navigate to the future month via header arrows

Expected behaviour:

  • If a "maxDate" is set in range mode, the next month (exceeding the max date) does not get shown at all and it should not be possible to show it by clicking the "next" arrow.

I.e. If the max date is set to last day in August 2024, the selected date range is also some range in August and I open the datepicker, it does not make sense to show September month as second month in the datepicker flyout, since a user cannot select anything there anyway. It would make more sense to then show Juli and August.

I could also not find a way to bypass this behaviour.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants
@SPeterFront and others