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

Uncaught Error: Invalid date received #4594

Closed
Darlley opened this issue Mar 14, 2024 · 0 comments · Fixed by #4602
Closed

Uncaught Error: Invalid date received #4594

Darlley opened this issue Mar 14, 2024 · 0 comments · Fixed by #4602

Comments

@Darlley
Copy link

Darlley commented Mar 14, 2024

Describe the bug
If the user writes a date and deletes everything with CRTL+A, it ends up with an error.
I identified this in the date picker range component, by typing only the start date and deleting everything right after

Caution

Uncaught Error: Invalid date received

To Reproduce
Steps to reproduce the behavior:

  1. Go to https://reactdatepicker.com/#example-date-range-using-input-with-clear-button
  2. Click on input (Date Range using input with clear button)
  3. Select start date
  4. Clear all

Screenshots
datepickerange
datepickerange-1

Desktop (please complete the following information):

  • OS: Windows 10
  • Browser Edge
  • Version [latest]
yuki0410-dev added a commit to yuki0410-dev/react-datepicker that referenced this issue Mar 16, 2024
yuki0410-dev added a commit to yuki0410-dev/react-datepicker that referenced this issue Mar 16, 2024
martijnrusschen added a commit that referenced this issue Mar 16, 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
1 participant