Skip to content

vue go error when bind model with: v-model="obj['prefix'+i+'suffix']" #1935

@ije

Description

@ije

vue go error when bind model with: v-model="obj['prefix'+i+'suffix']", but it's ok when v-model="obj['prefix'+i]"

<p v-for="i in 3">
  <!-- the `editingContent.meta` is a vaild child object of vue instance -->
  <input v-model="editingContent.meta['prefix'+i]"> <!-- ok -->
  <input v-model="editingContent.meta[('prefix'+i)+'suffix']"> <!-- ok -->
  <input v-model="editingContent.meta['prefix'+i+'suffix']"> <!-- error -->
</p>

console print:
screen-shot-2015-11-29-at-22 07 45

with vue 1.10

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