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 submitError when an inputs value has been changed #89
Comments
isn't there And then there is also Would that solve your problem? |
@maciejmyslinski not really, if you want to dismiss error until the next submit. It will be awesome to also have |
field prop |
Edit: I guess my issue is rather related to final-form/final-form#80 But clearing submission errors on field change would also be interesting. |
Published fix in |
Thanks Erik! How do you recommend clearing the field error once the field has been updated and changed? I would like to preserve the values in the other fields while clearing the field that received the submit error. |
@PaulSavignano I updated the logic used for field-level validation highlighting and field-level error messages to |
@Soundvessel just want to add that in this case after while form submission is in progress this condition |
@erikras I used I observe form state is still not updating, when i type something into these fields(which has submit errors). Is there any work around for this problem ?? |
this approach still does not clear the one possible solution is to, in your components, construct your own |
Are you submitting a bug report or a feature request?
Feature request
What is the current behavior?
SubmitErrors persist when an inputs value has changed after a [FORM_ERROR] is returned.
What is the expected behavior?
SubmitErrors are cleared when an inputs value is updated. Similar behavior to resetting the form.
Sandbox Link
https://codesandbox.io/s/9y9om95lyp
What's your environment?
final-form@1.2.1
react-final-form@1.1.1
Other information
How can a submitError be cleared once an inputs value has been updated and changed? I would like to clear the submitErrors and the submitError after a user makes an update to an input and the form is no longer in error.
Any help or guidance would be greatly appreciated. Thanks for the great library!
The text was updated successfully, but these errors were encountered: