]> git.ipfire.org Git - thirdparty/vuejs/core.git/commitdiff
fix(runtime-core): should pass instance to patchProp on mount for event error handlin...
authorunderfin <2218301630@qq.com>
Fri, 12 Jun 2020 15:59:55 +0000 (23:59 +0800)
committerGitHub <noreply@github.com>
Fri, 12 Jun 2020 15:59:55 +0000 (11:59 -0400)
fix #1336

packages/runtime-core/src/renderer.ts

index e289fbcb9ffba99cd3586234fef5720a52a5430c..b306b9f2d726c02fda8cc22f8ec363f61c8d1dc4 100644 (file)
@@ -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)) {