You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<div>
<!-- Case1 -- The key is attached to _Fragment.-->
<template v-for="item in list" :key="item.id1">
<MyButton :foo="item">One</MyButton>
<MyButton :foo="item">Two</MyButton>
</template>
<!-- Case2 -- The key is not attached to _Fragment. -->
<template v-for="item in list" :key="item.id2">
<MyButton :foo="item">One</MyButton>
</template>
<!-- Case3 -- The key is attached to div. -->
<div v-for="item in list" :key="item.id3">
<MyButton :foo="item">One</MyButton>
</div>
<!-- Case4 -- The key is not attached to _Fragment. -->
<template v-for="item in list" :key="item.id4">
<div>
<MyButton :foo="item">One</MyButton>
</div>
</template>
</div>
What is expected?
I expected {key: item.id2} and {key: item.id4} to be attached somewhere.
What is actually happening?
{key: item.id2} and {key: item.id4} are not attached anywhere.
Version
3.0.0-rc.6
Reproduction link
DEMO on Vue3 template explorer
Steps to reproduce
Check the compilation results of Case2 and Case4.
What is expected?
I expected
{key: item.id2}
and{key: item.id4}
to be attached somewhere.What is actually happening?
{key: item.id2}
and{key: item.id4}
are not attached anywhere.The text was updated successfully, but these errors were encountered: