Skip to content

Commit 68522cf

Browse files
gebilaoxiongyyx990803
authored andcommitted
fix:the placeholder key in undefined when render async component (#5828)
1 parent 13bb643 commit 68522cf

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/platforms/web/runtime/components/transition.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,9 @@ export default {
140140
// during entering.
141141
const id: string = `__transition-${this._uid}-`
142142
child.key = child.key == null
143-
? id + child.tag
143+
? child.isComment
144+
? id + 'comment'
145+
: id + child.tag
144146
: isPrimitive(child.key)
145147
? (String(child.key).indexOf(id) === 0 ? child.key : id + child.key)
146148
: child.key

0 commit comments

Comments
 (0)