MatBlazor
MatBlazor copied to clipboard
Datepicker validation error doesn't clear from invalid input after a valid date is selected from picker.
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:
- Go to "Validation via EditContext on MatBlazor.com/EditContext
- Click on Start Date and enter "dd" tab out.
- See the error The string 'dd' was not recognized as a valid DateTime. There is an unknown word starting at index '0'.
- 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.
@wa1gon , Thanks for reporting! We are always looking for contributors if you want to open a PR and tackle this. 🙂