-
-
Notifications
You must be signed in to change notification settings - Fork 8.5k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
<Transition> does not support :key binding when use v-for #8682
Comments
use transition-group |
What if: <script>
const list=[{
id:0,
type: "user"
}]
</script>
<template>
<transition v-for=item in list :key=item.id :name="'transition-'+item.type"/>
</template> |
It seems to be related to vuejs/language-tools#3340
core/packages/runtime-dom/src/components/Transition.ts Lines 45 to 48 in 3127c41
|
Closing this here as its about the language tools |
I don't think it is a language tools problem. |
Faced this issue when updating an existing project to a Typescript setup so can add a few additional details:
|
This is a language tools issue - the error is no longer reproducible with latest versions of Vue and |
Vue version
3.3.4
Link to minimal reproduction
https://stackblitz.com/edit/vitejs-vite-xcl8cd
Steps to reproduce
Run
vue-tsc
What is expected?
Type check is passed.
What is actually happening?
System Info
No response
Any additional comments?
Only
<Transition>
has this problem,<TransitionGroup>
work fineThe text was updated successfully, but these errors were encountered: