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

DateInput errors on valid text input when formatting using AM/PM time #7107

Open
ConnorGyde opened this issue Dec 2, 2024 · 0 comments
Open
Assignees

Comments

@ConnorGyde
Copy link

Environment

Can be replicated using the example component found at https://blueprintjs.com/docs/#datetime2/date-input3. I'm using Firefox Developer Edition.

Steps to reproduce

  1. Switch date-fns format string to LLL do, yyyy 'at' K:mm a.
  2. Select a date in the date picker.
  3. Delete the 'A' from 'AM'.
  4. Write the 'A' again.

Actual behavior

No date is highlighted in the date picker. Upon blurring the input (clicking elsewhere on the page), the textbox displays 'Invalid date'.

Expected behavior

The date should still be highlighted in the date picker, and when blurring the input, the date should not display as invalid.

@ConnorGyde ConnorGyde changed the title DateInput errors on valid text input using AM/PM time DateInput errors on valid text input when formatting using AM/PM time Dec 2, 2024
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