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

Can choose month with no available days #79

Open
djohle opened this issue Dec 2, 2016 · 0 comments
Open

Can choose month with no available days #79

djohle opened this issue Dec 2, 2016 · 0 comments

Comments

@djohle
Copy link

djohle commented Dec 2, 2016

I have a calendar which utilizes the disable_dates & enable_dates features to only allow choosing certain days within a month. I am also using the direction to ensure no dates in the future can be selected.

Today is December 1st, and that particular day is not within the enabled dates, thus December has no available dates (the most recent available in this case is Nov 15th). However, when I open the picker into months view (my default initial view) it allows choosing Dec. Then if I do choose December I am brought into days view with all of the days disabled.

This is confusing to my end users, who would expect the Dec option to be disabled in the months view.

I presume a similar issue will happen in about a month where, come Jan 1st 2017, not only will Jan be enabled in months view, but 2017 will be enabled in years view despite no dates being available in 2017 yet at that point.

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

1 participant