MatBlazor icon indicating copy to clipboard operation
MatBlazor copied to clipboard

Datepicker validation error doesn't clear from invalid input after a valid date is selected from picker.

Open wa1gon opened this issue 5 years ago • 1 comments

Describe the bug

In a validated date picker input field, enter some random letters, then tab out. Error message about invalid input shows up. Pick a valid from the picker UI. The error message doesn't go away and it claims the random letters are still invalid.

To Reproduce Steps to reproduce the behavior:

  1. Go to "Validation via EditContext on MatBlazor.com/EditContext
  2. Click on Start Date and enter "dd" tab out.
  3. See the error The string 'dd' was not recognized as a valid DateTime. There is an unknown word starting at index '0'.
  4. I see no way to clear the error

Blazorfiddle link No Blazorfiddle, but happens on MatBlazor website as well as my app.

Expected behavior The errors to go away when there is valid input.

BlazorDateError

wa1gon avatar Feb 02 '21 03:02 wa1gon

@wa1gon , Thanks for reporting! We are always looking for contributors if you want to open a PR and tackle this. 🙂

Christian-Oleson avatar Mar 08 '21 00:03 Christian-Oleson