Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tests: Add failing locale test: bad value is parsed using default locale
Parsing `valueEn` as a Portugese date should fail, but accidentally gets parsed using the default/en-US locale, because parseDate internally retries and accidentally omits[^1] the original locale option that time around. [^1]: https://github.com/Hacker0x01/react-datepicker/blob/5c1d6d923931535f105f3dddbb6f3e10fd8dd25c/src/date_utils.js#L121
- Loading branch information