Skip to content
This repository has been archived by the owner on Apr 17, 2022. It is now read-only.

prevent month navigation outside minDate/maxDate #94

Closed
gerritvanaaken opened this issue Feb 4, 2022 · 4 comments
Closed

prevent month navigation outside minDate/maxDate #94

gerritvanaaken opened this issue Feb 4, 2022 · 4 comments
Labels
enhancement New feature or request
Milestone

Comments

@gerritvanaaken
Copy link

Users are able to navigate to a month that is in the past (or before the defined minDate of the date picker). That confuses them potentially.

I would like an option that prevents displaying the month view outside the defined minDate and maxDate of this datepicker instance!

@Jasenkoo
Copy link
Contributor

Jasenkoo commented Feb 4, 2022

I am aware of this issue, it will be fixed in the next version

@Jasenkoo Jasenkoo added bug Something isn't working enhancement New feature or request labels Feb 4, 2022
@Jasenkoo Jasenkoo added this to the v2.6.0 milestone Feb 4, 2022
@Jasenkoo Jasenkoo removed the bug Something isn't working label Feb 4, 2022
@gerritvanaaken
Copy link
Author

Can’t wait for 2.6.0 ;-)

@gerritvanaaken
Copy link
Author

Thanks for adding this feature. Two remarks, though:

  1. Shouldn’t it be sufficient if one of the two props "minDate" or "maxDate" is given? Currently, both are needed, so I would have to set some fantasy date in the future as "maxDate".
  2. In my quick test, I have set "minDate" to "now". I changed the month to March, but could not get back to February afterwards. Maybe something wrong with my reactivity, maybe a bug.

@Jasenkoo
Copy link
Contributor

@gerritvanaaken

  1. Shouldn’t it be sufficient if one of the two props "minDate" or "maxDate" is given? Currently, both are needed, so I would have to set some fantasy date in the future as "maxDate"

Hmm, I will check that, it should work if only one is added

2. In my quick test, I have set "minDate" to "now". I changed the month to March, but could not get back to February afterwards. Maybe something wrong with my reactivity, maybe a bug.

There is an issue that will be fixed in the upcoming version (check #99)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants