-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Custom input not working with yup.ref() #4753
Comments
field-level validation doesn't work with I think vee-validate could try to instead expose them as context for I will work on this and publish a minor release with it. EDIT: Implemented in 27fe5c8 |
I'm sorry for commenting on a closed ticket. With the new changes shouldn't this also work for when the schema is passed directly to the Form component? https://vee-validate.logaretm.com/v4/examples/cross-field-validation/
|
Form has 2 fields in the schema (goal is validate confirmPassword with password...make sure they match).
config gets passed in as prop to component.
In the component
// build validationSchema
create form context
// build models for custom components
loop through and create custom comp
values if typing in "aaaaaaa" into both input fields
{ "password": "aaaaaaa", "confirmPassword": "aaaaaaa" }
errors:
{ "confirmPassword": "Passwords must match" }
Reproduction steps
No response
Version
Vue.js 3.x and vee-validate 4.x
What browsers are you seeing the problem on?
Relevant log output
No response
Demo link
na
Code of Conduct
The text was updated successfully, but these errors were encountered: