A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/vuejs/vue/issues/5881 below:

key attribute set by `v-bind="obj"` is ignored by transition-group · Issue #5881 · vuejs/vue · GitHub

Version

2.3.4

Reproduction link

https://codepen.io/Nirazul/pen/RgGRjm

Steps to reproduce
  1. Click on the trigger button
  2. There is only one list visible instead of two
What is expected?

According to the documentation I was expecting that I can use the v-bind object notation to set the key attribute.

What is actually happening?

The list is not rendered when the key attribute is not directly present on the element.

I'm aware that key is a special attribute and that there may be some sort of "hen and egg" problem at work when rendering items in a transition-group.
If the behaviour is intentional, there's maybe some space for improvement in the documentation.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4