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

DateRangeInput3: Unable to select dates of earlier month when minDate and maxDate props are 1 month apart #6546

Closed
mattskrobola opened this issue Nov 14, 2023 · 0 comments · Fixed by #6548

Comments

@mattskrobola
Copy link
Contributor

Environment

Package version(s): 5.6.0
Operating System: macOS
Browser name and version: Chrome

Code Sandbox

Repro

Steps to reproduce

  1. Render a DateRangeInput3 using minDate and maxDate props that are 1 month apart. e.g:
<DateRangeInput3
        minDate={new Date(2023, 9, 13)}
        maxDate={new Date(2023, 10, 23)}
/>
  1. See we are unable to select dates within the earlier month
Screenshot 2023-11-14 at 4 58 49 PM

See repro for more examples

note: this doesn't happen with all examples that are 1 month apart. e.g: Feburary 1st to March 20th

Actual behavior

The earlier month is listed on the right and dates within that month are disabled.

Expected behavior

All dates within the range are selectable, earlier month is initially displayed on the left

Possible solution

Bug is not present in DateRangeInput2

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

Successfully merging a pull request may close this issue.

2 participants