Browse Source

fix:the placeholder key in undefined when render async component (#5828)

laoxiong 9 years ago
parent
commit
68522cfdef
1 changed files with 3 additions and 1 deletions
  1. 3 1
      src/platforms/web/runtime/components/transition.js

+ 3 - 1
src/platforms/web/runtime/components/transition.js

@@ -140,7 +140,9 @@ export default {
     // during entering.
     const id: string = `__transition-${this._uid}-`
     child.key = child.key == null
-      ? id + child.tag
+      ? child.isComment
+        ? id + 'comment'
+        : id + child.tag
       : isPrimitive(child.key)
         ? (String(child.key).indexOf(id) === 0 ? child.key : id + child.key)
         : child.key