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

maxDate is not selectable if it's in the next month #485

Closed
JuusoPalander opened this issue Feb 9, 2021 · 3 comments
Closed

maxDate is not selectable if it's in the next month #485

JuusoPalander opened this issue Feb 9, 2021 · 3 comments
Assignees
Labels
bug Something isn't working

Comments

@JuusoPalander
Copy link

JuusoPalander commented Feb 9, 2021

I faced an issue with the maxDate prop today with the following setup:

  • minDate: 2021-02-28(Sun Feb 28 2021 00:00:00 GMT+0200 (Eastern European Standard Time))
  • maxDate: 2021-03-01 (Mon Mar 01 2021 00:00:00 GMT+0200 (Eastern European Standard Time))
  • defaultActiveStartDate: 2021-02-28(Sun Feb 28 2021 00:00:00 GMT+0200 (Eastern European Standard Time))

With this setup the Next month button is disabled in the month view (February 2021). If I add one second to the maxDate then it becomes enabled again.

Example: https://codesandbox.io/s/react-calendar-next-month-button-disabled-zhn8c

Is this working as intended? If so, maybe it could be documented more precisely in the readme :)

wordysumo added a commit to wordysumo/react-calendar that referenced this issue Mar 24, 2021
@arpitprod
Copy link

I added same bug video here

wojtekmaj/react-date-picker#209 (comment)

@github-actions
Copy link
Contributor

This issue is stale because it has been open 90 days with no activity. Remove stale label or comment or this issue will be closed in 14 days.

@github-actions github-actions bot added the stale label Aug 26, 2021
@wojtekmaj wojtekmaj added bug Something isn't working and removed stale labels Aug 26, 2021
@wojtekmaj
Copy link
Owner

What an excellent repro repo. Loved it! Fixed.

@wojtekmaj wojtekmaj self-assigned this Aug 26, 2021
wojtekmaj added a commit that referenced this issue Aug 26, 2021
…lisecond of nextActiveStartDate or nextActiveStartDate2 respectively

Closes #485
wojtekmaj added a commit that referenced this issue Aug 26, 2021
…lisecond of nextActiveStartDate or nextActiveStartDate2 respectively

Closes #485
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants