fix: vnode key ref should default to null

This commit is contained in:
Evan You 2019-06-06 13:04:31 +08:00
parent 39e1fffb9c
commit 693938d956

View File

@ -119,8 +119,8 @@ export function createVNode(
const vnode: VNode = {
type,
props,
key: props && props.key,
ref: props && props.ref,
key: (props && props.key) || null,
ref: (props && props.ref) || null,
children: null,
component: null,
el: null,