-
-
Notifications
You must be signed in to change notification settings - Fork 141
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
A way to remove errors without rolling back #361
Comments
👋 What version are you on? I'm guessing |
I would also like to see this added. Use-case is as follows: I have a fieldset of checkboxes, with at least one required, and each value included in the changeset. User deselects all checkboxes. On the last checkbox, the validation adds an error for that key. Now user re-selects another checkbox. Validation passes, but doesn't remove the error. |
Chiming in with our use-case: We do a lot of manual stuff, because ... reasons. At one point we figure out that validation errors on all the fields are not true anymore and should be cleared. Not the values, just the errors. |
I think this trick should work around the problem before we have proper support: for (const errKey in this.changeset._errors) {
this.changeset.addError(errKey); // no second argument effectively clears the error
} |
Is there some way to clear errors without rollback in changeset? I've faced the same issue as here #282
The text was updated successfully, but these errors were encountered: