Skip to content

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

@rmp135

Description

@rmp135

Take the following

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

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions