How can I reset the error state of the new Clarity 0.13 forms? I'm using reactive forms and I want to fully reset the form. While I can easily reset the FormGroup
I don't know how I can get rid of e.g. the error state that is triggered when losing focus of a required empty input. I was looking for an undocumented feature in the Clarity code but I couldn't find anything that helps here.
Here is a stackblitz where you can reproduce the problem: https://stackblitz.com/edit/clarity-light-theme-v013-6s2qtq
- Click in the input
- Click outside the input
- Click the "Reset Form" button
- The input is still marked as invalid. Well, actually it is. But I need the original state to reuse the form.