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 get corrupted sometimes #7267

Open
jandrew44 opened this issue Feb 19, 2025 · 0 comments
Open

DateRangeInput3 get corrupted sometimes #7267

jandrew44 opened this issue Feb 19, 2025 · 0 comments

Comments

@jandrew44
Copy link

Environment

  • Package version(s):
    @blueprintjs/core: 5.16.4
    @blueprintjs/datetime2: 2.3.21
  • Operating System:
    Windows 10 Home Edition
  • Browser name and version:
    Google Chrome 133.0.6943.127

Code Sandbox

https://codesandbox.io/p/devbox/damp-butterfly-ls23lv?file=%2Fsrc%2FDateRangeInputBug.tsx%3A8%2C6-8%2C21&workspaceId=ws_PXP8Hez1WaKoj9r6rKHn5t

Steps to reproduce

  1. Open date range input and switch year to 2024(previous year) on the left part of the component
    Image
  2. Switch month to the current month(February at this moment) on the left part of the component
    Image
  3. Switch year to 2025(current year) on the left part of the component

Actual behavior

Corrupted state of the component: months on both parts of the component got switched to January(previous month), all dates are disabled, month names on both sides are overlaped with arrow controls.

Image

Expected behavior

No blocked dates since there are valid ranges for selection in February(as well as in January).
No overlap.

Possible solution

None.

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