Availity / availity-reactstrap-validation

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

a small roadblock in resetting the Date Field #269

Open manojkarri6 opened 2 years ago

manojkarri6 commented 2 years ago

@TheSharpieOne , As specified in the issue #185, I am trying to implement the same for Date Field but I am having a small roadblock. Please find the details below and please let me know incase if there is any valid work around.

Scenario: If I enter the date and remove either MM or DD or YYYY, then I am seeing validation error - "This field is invalid" and here I am able to reset only the validation error but not the value in the input filed. Is there any work around to reset the Date Field as a whole(validation errors and input value)

Screenshot: 1 -

image

Screenshot: 2 -

image

Screenshot: 3 - Here if I click "Reset Date Field", the validation is removed but I still see the value in the input field 06/dd/2022 (highlighted in red color box)

image