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

Displayed range presumes selecting dates from future rather than past #231

Open
jaycincotta opened this issue Mar 8, 2020 · 0 comments
Open

Comments

@jaycincotta
Copy link

jaycincotta commented Mar 8, 2020

I would like to use this for selecting date ranges for retrieving historical data. With numberOfCalendars=4 and maximumDate=today, I would expect the control to display this month and the previous four months, but it displays one month in the past and two months into the future.

When maximumDate is set, there is no value in viewing entire future months that are ineligible for selection. In this scenario, I would expect to see the current month and the three previous months.

In fact, if you use the arrow buttons to scroll into the past then try to scroll back into the future, the control will not allow you to scroll beyond the month containing maximumDate. This same constraint should be applied to the initial set of calendars displayed.

Codesandbox

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