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

Default value from yup schema not working when schema is reactive #4196

Closed
1 of 5 tasks
fauzymk opened this issue Mar 23, 2023 · 1 comment
Closed
1 of 5 tasks

Default value from yup schema not working when schema is reactive #4196

fauzymk opened this issue Mar 23, 2023 · 1 comment
Labels
🐛 bug Unintended behavior

Comments

@fauzymk
Copy link

fauzymk commented Mar 23, 2023

What happened?

Hi does the current toTypedSchema support reactive schema? I tried to return toTypedSchema(schema) in a computed but then the Yup default values aren't working properly. The field is empty. Expected the field is filled with the default value.

Reproduction steps

No response

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/vee-validate-v4-cross-field-validation-cbdhwf?file=src/App.vue

Code of Conduct

@logaretm logaretm added the 🐛 bug Unintended behavior label Mar 23, 2023
@logaretm
Copy link
Owner

Thanks for reporting this, this is actually a bug. I found the problem and will be tagging a fix shortly. Thank you!

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