From: underfin <2218301630@qq.com> Date: Fri, 12 Jun 2020 15:59:55 +0000 (+0800) Subject: fix(runtime-core): should pass instance to patchProp on mount for event error handlin... X-Git-Tag: v3.0.0-beta.15~12 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=aac9b03c11c9be0c67b924004364a42d04d78195;p=thirdparty%2Fvuejs%2Fcore.git fix(runtime-core): should pass instance to patchProp on mount for event error handling (#1337) fix #1336 --- diff --git a/packages/runtime-core/src/renderer.ts b/packages/runtime-core/src/renderer.ts index e289fbcb9f..b306b9f2d7 100644 --- a/packages/runtime-core/src/renderer.ts +++ b/packages/runtime-core/src/renderer.ts @@ -676,7 +676,16 @@ function baseCreateRenderer( if (props) { for (const key in props) { 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)) {