Skip to content

Commit

Permalink
fix(runtime-core): should pass instance to patchProp on mount for eve…
Browse files Browse the repository at this point in the history
…nt error handling (#1337)

fix #1336
  • Loading branch information
underfin authored Jun 12, 2020
1 parent 90c3532 commit aac9b03
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion packages/runtime-core/src/renderer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down

0 comments on commit aac9b03

Please sign in to comment.