Skip to content

v-model inside v-for doesn't set value when property name is dynamic #1797

@inca

Description

@inca

As explained in this forum post and demonstrated by this fiddle, if you have something like v-model="obj['prefix-' + key]", you occasionally get this:

Cannot read property "get" of undefined

or that:

[Vue warn]: Invalid setter function body:  'prefix-'+scope.key

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions