fix: vnode key ref should default to null
This commit is contained in:
parent
39e1fffb9c
commit
693938d956
@ -119,8 +119,8 @@ export function createVNode(
|
|||||||
const vnode: VNode = {
|
const vnode: VNode = {
|
||||||
type,
|
type,
|
||||||
props,
|
props,
|
||||||
key: props && props.key,
|
key: (props && props.key) || null,
|
||||||
ref: props && props.ref,
|
ref: (props && props.ref) || null,
|
||||||
children: null,
|
children: null,
|
||||||
component: null,
|
component: null,
|
||||||
el: null,
|
el: null,
|
||||||
|
Loading…
Reference in New Issue
Block a user