fix(runtime-core): should pass instance to patchProp on mount for event error handling (#1337)

fix #1336
This commit is contained in:
underfin 2020-06-12 23:59:55 +08:00 committed by GitHub
parent 90c3532946
commit aac9b03c11
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -676,7 +676,16 @@ function baseCreateRenderer(
if (props) { if (props) {
for (const key in props) { for (const key in props) {
if (!isReservedProp(key)) { if (!isReservedProp(key)) {
hostPatchProp(el, key, null, props[key], isSVG) hostPatchProp(
el,
key,
null,
props[key],
isSVG,
vnode.children as VNode[],
parentComponent,
parentSuspense
)
} }
} }
if ((vnodeHook = props.onVnodeBeforeMount)) { if ((vnodeHook = props.onVnodeBeforeMount)) {