We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When binding a <select> element's options to values using :value="something", when the option gets selected the value is cast to a string.
<select>
:value="something"
This is because vee-validate uses the e.target.value in that case, it should resolve the actual value in the same way it does for checkboxes.
e.target.value
useField
Field
string
Vue.js 3.x and vee-validate 4.x
No response
https://codesandbox.io/s/objective-minsky-ulqdh?file=/src/App.vue
The text was updated successfully, but these errors were encountered:
fix: ensure option bound value type is preserved closes #3440
a2f3ed4
b144615
a5ce259
9283f61
logaretm
No branches or pull requests
What happened?
When binding a
<select>
element's options to values using:value="something"
, when the option gets selected the value is cast to a string.This is because vee-validate uses the
e.target.value
in that case, it should resolve the actual value in the same way it does for checkboxes.Reproduction steps
useField
orField
componentstring
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
https://codesandbox.io/s/objective-minsky-ulqdh?file=/src/App.vue
Code of Conduct
The text was updated successfully, but these errors were encountered: