Skip to content

Error: v-for index as key on <transition-group> children #9215

@edum18

Description

@edum18

Version

2.5.21

Reproduction link

https://jsfiddle.net/edugodsinmetr/p1fdze9y/

Steps to reproduce

Using v-for index as key on <transition-group>

What is expected?

No error

What is actually happening?

Error "Do not use v-for index as key on children, this is the same as not using keys."


I think I had no errors with this implementation before. My workaround to this issue was to add a number to the index value :key="i+1" but I'm not sure if I should do it.

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