Browse Source

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

dev
Evan You 8 years ago
parent
commit
089c1458cc
  1. 2
      src/platforms/web/runtime/components/transition.js

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

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

Loading…
Cancel
Save