-
-
Notifications
You must be signed in to change notification settings - Fork 129
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
Clear hasError state when resetting? #613
Comments
I have the same issue. A workaround we use for now is
|
Also introduced |
Thanks! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi. I have a form where all fields are required, and their default values are empty. I'm using
hasError
in my bindings to indicate which fields have errors.I don't want errors to appear until the user at least focuses a field, so I set
validateOnInit: false
.But when I reset the form to its initial values using
form.reset()
, I want to put it back in that initial state, so the errors no longer appear.I tried setting
showErrorsOnReset: false
, and this prevents the error text from appearing. But thehasError
property still becomes true. Is there a way to prevent this?The text was updated successfully, but these errors were encountered: