Skip to content

Conversation

vladrusu
Copy link
Contributor

@vladrusu vladrusu commented Feb 8, 2025

Valid date validation on input is broken.

This is because Number.isNaN('Invalid Date') returns false (Number.isNaN returns true only if the parameter is NaN), unlike isNaN('Invalid Date').

See this for more information:
https://stackoverflow.com/questions/1353684/detecting-an-invalid-date-date-instance-in-javascript

Currently, if you dropdown a daterange, select a date and then manually modify it to an invalid date (say, deleting a digit from the month), the entire dropdown calendar will show invalid date or Inv...

This pull request fixes this.

Screenshot from 2025-02-09 01-13-28

@vladrusu
Copy link
Contributor Author

vladrusu commented Oct 3, 2025

Fixed in the meantime, will close this pull request.

@vladrusu vladrusu closed this Oct 3, 2025
@vladrusu vladrusu deleted the main-patch9 branch October 3, 2025 15:18
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

Successfully merging this pull request may close these issues.

1 participant