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 edited

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.

@yyx990803 yyx990803 closed this in 1cf377f Dec 2, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment