Skip to content
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

Hi, i have a question. how to reset field errors #3

Open
jensysantana opened this issue Jun 7, 2021 · 1 comment
Open

Hi, i have a question. how to reset field errors #3

jensysantana opened this issue Jun 7, 2021 · 1 comment

Comments

@jensysantana
Copy link

Hi, i have a question.

after submit the form
1- how to remove error from field after any change in this field.
also how to re run validations in blur and show error only if form has been submited before.

@KamyarLajani
Copy link
Owner

KamyarLajani commented Feb 15, 2022

1- Try to make the variable submitted to false if any fields value changed. make the fields object reactive and make a reactive if condition to check for it.
2- Add this on:blur="{formSubmit}" in all your input tags, then do the answer (1) with it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants