Why and on what scenario would the form fields error state persist?
After an error, the validation summary and the error fields' messages get displayed. Clear event correctly renders (removes the validation messages). Then filling the correct values and submitting the form produces the expected result but also displays the field validation messages from the previous validation (the summary message do not). So I created a clear handler as follows but it behaves the same:
function formClear(e) {
const frm = $('#myForm').data('kendoForm');
frm.clear();
frm.validator.reset(); //introduced this as the above also did not behave correctly.
}
Hi Francis,
Would you please update the REPL example below based on the setup at your end to replicate the behavior you are experiencing?
https://netcorerepl.telerik.com/ccEycMFw22Ixzfur33
Alternatively, consider sharing a runnable application where I can observe the issue. I will test it locally and follow up with the respective suggestion.