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
meta.valid should be checked again after reset #3463
Comments
Please use the issue creator form and fill all the details, I don't have enough details to go on here. A demo on codesandbox will help a lot. |
I want to keep my submit button disabled until all required fields are filled. Im not sure how to do this, so I cannot provide a demo. I am using the Form and Field Components. Either there should be a new meta property to signal when all mandatory fields have values, |
Well, I cannot just guess what's going on because I already have tests for that case. So a demo would help me a lot to investigate your case, it can be a simple issue or an edge case. You can use codesandbox to replicate the issue, and you can use any of the examples on the docs and fork if that's going to help. |
I got the demo to reproduce the issue I call formReset() when the form is open, this seems to be where the issue begins. |
I don't see any rules on the second field, so its always valid. <!-- 👇 -->
<Field as="div" name="notes" rules="" v-slot="{ field }"> |
Oh thanks, yea the silent validation doesn't run after the reset function is called. |
Should be fixed in |
I want to keep my submit button disabled until all required fields have values and they are valid.
At the moment there is no way to do this, I cant even loop through the form fields to check that required fields have been touched and are valid.
template ref is borked without state and more internals available
The text was updated successfully, but these errors were encountered: