Availity / availity-reactstrap-validation

Easy to use React validation components compatible for reactstrap.
https://availity.github.io/availity-reactstrap-validation/
MIT License
191 stars 70 forks source link

Odd behavior on firefox with invalid dates on date input field #202

Open senne-af opened 4 years ago

senne-af commented 4 years ago

When entering an invalid date on firefox (so typing it in, not using the picker), the field gets cleared at a certain point.

The date in question is the 29th of february 2020.

When typing it in you can get to "29/02/20__" but as soon as you add the second 2 of 2020 the value of the field gets cleared (presumably because the year 202 did not have a 29th of february). In other browsers the incomplete date still shows, but on firefox the field gets cleared, preventing you from finishing the input.

You can test this out on the demo page at the date field: https://availity.github.io/availity-reactstrap-validation/components/validators/