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

Vee-validate: Default modelValue value issue #3467

Closed
2 of 5 tasks
Salfadios opened this issue Aug 31, 2021 · 1 comment
Closed
2 of 5 tasks

Vee-validate: Default modelValue value issue #3467

Salfadios opened this issue Aug 31, 2021 · 1 comment
Labels
🐛 bug Unintended behavior duplicate This issue or pull request already exists

Comments

@Salfadios
Copy link

Salfadios commented Aug 31, 2021

What happened?

Vue app is crashed with error:

"Uncaught (in promise) TypeError: Cannot convert a Symbol value to a string"

Reproduction steps

  1. Create component like this:
    defineComponent({ name: 'test', data() { return { test: 123 } } })
  2. Add template to the component like this:

<Field name="test" rules="required" v-model="value">
<label>Any value:</label>
<input v-bind="field" />
</Field>

  1. Set 'test' value with 'undefined':
    this.test = undefined;

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

Uncaught (in promise) TypeError: Cannot convert a Symbol value to a string
    at patchDOMProp (runtime-dom.esm-bundler.js:226)
    at patchProp (runtime-dom.esm-bundler.js:387)
    at patchProps (runtime-core.esm-bundler.js:4329)
    at patchElement (runtime-core.esm-bundler.js:4229)
    at processElement (runtime-core.esm-bundler.js:4071)
    at patch (runtime-core.esm-bundler.js:3988)
    at patchKeyedChildren (runtime-core.esm-bundler.js:4761)
    at patchChildren (runtime-core.esm-bundler.js:4704)
    at processFragment (runtime-core.esm-bundler.js:4385)
    at patch (runtime-core.esm-bundler.js:3984)

Demo link

https://codesandbox.io/s/vee-validate-async-validation-forked-069tl

Code of Conduct

@logaretm
Copy link
Owner

logaretm commented Aug 31, 2021

Thanks this was reported here #3468, this was already fixed and should be resolved in the next patch.

@logaretm logaretm added duplicate This issue or pull request already exists 🐛 bug Unintended behavior labels Aug 31, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 bug Unintended behavior duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

2 participants