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

defineField path incorrectly resolves in error output when it's a getter #4877

Closed
2 of 5 tasks
jack-allocate opened this issue Sep 30, 2024 · 1 comment
Closed
2 of 5 tasks
Labels
🐛 bug Unintended behavior

Comments

@jack-allocate
Copy link

What happened?

defineField supports a MaybeRefOrGetter, which implies I could do:
defineField(() => 'email')

However, the resulting errors doesn't seem to access the inner value of the path

errors: {
  "() => 'email'": "this is a required field"
}

Reproduction steps

Check demo link

Version

Vue.js 3.x and vee-validate 4.x

What browsers are you seeing the problem on?

  • Firefox
  • Chrome
  • Safari
  • Microsoft Edge

Relevant log output

No response

Demo link

https://stackblitz.com/edit/7qet3p-52nwk7?file=src%2FApp.vue

Code of Conduct

@logaretm logaretm added the 🐛 bug Unintended behavior label Oct 19, 2024
@logaretm
Copy link
Owner

Thanks for reporting this, the fix will be shipped in the next release.

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

No branches or pull requests

2 participants