Procházet zdrojové kódy

overwrite static node key in <transition> to ensure unique pending key

Evan You před 9 roky
rodič
revize
089c1458cc

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

@@ -119,7 +119,7 @@ export default {
       return placeholder(h, rawChild)
     }
 
-    child.key = child.key == null
+    child.key = child.key == null || child.isStatic
       ? `__v${child.tag + this._uid}__`
       : child.key
     const data = (child.data || (child.data = {})).transition = extractTransitionData(this)