Skip to content

v-for, refs and access to refs.<array of components> by array index after Array.unshift #4952

@alekzonder

Description

@alekzonder

here example: https://jsfiddle.net/alekzonder/1zcLkuwq/
vue.js 2.1.10

steps in example:

  1. press "unshift new" button
  2. then press "set bold" with 0 index in input

problem: item with index 1 is bold after Array.unshift in data

if remove :key=item.id in template with v-for, all works right

bug or feature?

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