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

Incorrect shortcut selection in DateRangeInput3 #7204

Open
jandrew44 opened this issue Jan 29, 2025 · 0 comments
Open

Incorrect shortcut selection in DateRangeInput3 #7204

jandrew44 opened this issue Jan 29, 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 132.0.6834.111

Code Sandbox

Can be reproduced on the Blueprint docs page:
https://blueprintjs.com/docs/#datetime2/date-range-input3

Steps to reproduce

  1. Open rangle picker and select any shortcut, for example, "Past year":
    Image
  2. Change start or end date to any other value, here I changed day, month and year of the start date:
    Image

Actual behavior

Shortcut "Past year" is still highlighted as selected, even if I close the selector and open it again.

Expected behavior

No shortcut is selected since value range does not correspond to any shortcut in the list.

Possible solution

None.

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

No branches or pull requests

2 participants