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

vue-template-compiler does not bind value to select elements #4369

rmp135 opened this Issue Dec 2, 2016 · 0 comments


None yet
1 participant

rmp135 commented Dec 2, 2016

Take the following

  <select :value='something'></select>

Currently, vue-template-compiler generates the render function with {attrs:{"value":something}}. However, vue supports the v-bind:value syntax with selects. I would think that instead, it should generate with {domProps:{"value":something}} in a similar manner to inputs.

This means no bindings can take place on the select. This works with a v-model, however this causes vuex to attempt to update the store without going through a mutator.

Looks like it was caused by the fix to #4233 that filters which tag / attribute combos are bound as props.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment