File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
src/platforms/web/runtime/components Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 4
4
// supports transition mode (out-in / in-out)
5
5
6
6
import { warn } from 'core/util/index'
7
- import { camelize , extend } from 'shared/util'
7
+ import { camelize , extend , isPrimitive } from 'shared/util'
8
8
import { mergeVNodeHook , getFirstComponentChild } from 'core/vdom/helpers/index'
9
9
10
10
export const transitionProps = {
@@ -133,7 +133,9 @@ export default {
133
133
const id = `__transition-${ this . _uid } -`
134
134
const key = child . key = child . key == null
135
135
? id + child . tag
136
- : child . key . indexOf ( id ) === 0 ? child . key : id + child . key
136
+ : isPrimitive ( child . key )
137
+ ? ( String ( child . key ) . indexOf ( id ) === 0 ? child . key : id + child . key )
138
+ : child . key
137
139
const data = ( child . data || ( child . data = { } ) ) . transition = extractTransitionData ( this )
138
140
const oldRawChild = this . _vnode
139
141
const oldChild : any = getRealChild ( oldRawChild )
You can’t perform that action at this time.
0 commit comments