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 end date input highlighting in DateRangeInput3 when allowSingleDayRange is true #7030

Open
jandrew44 opened this issue Oct 28, 2024 · 1 comment

Comments

@jandrew44
Copy link

Environment

  • Package version(s):
    @blueprintjs/core: 5.13.1
    @blueprintjs/datetime: 5.3.11
    @blueprintjs/datetime2: 2.3.11
  • Operating System:
    Windows 10 Home Edition
  • Browser name and version:
    Google Chrome 129.0.6668.101

Code Sandbox

Link to a minimal repro (fork this code sandbox):
https://codesandbox.io/p/sandbox/blueprint-daterangeinput3-rxfk3n?file=%2Fsrc%2Findex.mjs%3A14%2C26

Steps to reproduce

  1. Open the link mentioned above
  2. Click on start or end date input
  3. Select the "Today" shortcut, it works fine since allowSingleDayRange is true
    Screenshot_9
  4. Click on the end date input

Actual behavior

End date input is highlighted by red border due to bp5-intent-danger class applied:
Screenshot_10

Expected behavior

No red border on date input and no bp5-intent-danger class applied since there are no any errors present.

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

2 participants
@jandrew44 and others