Skip to content

Dynamic input type no longer works with v-model and :value at the same time. #7404

Closed
@sourenaraya

Description

@sourenaraya

Version

2.5.13

Reproduction link

https://codepen.io/anon/pen/KZyJyy

Steps to reproduce

Open JS console and see `[Vue warn]: Error compiling template:

{{ testitem }}
{{ testvalue }}
  • :value="testitem" conflicts with v-model on the same element because the latter already expands to a value binding internally

(found in )`

What is expected?

Template compiled without errors, just like in Vue 2.5.3

What is actually happening?

Errors while template compilation. On codepen this still renders component, but webpack wont build bundle because of this error.


This code worked on 2.5.3, https://codepen.io/anon/pen/opomGr

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