Skip to content

Commit

Permalink
fix(runtime-core): add FULL_PROPS patch flags when cloned vnode has…
Browse files Browse the repository at this point in the history
… `NEED_PATCH` patch flags

fix vuejs#1665
  • Loading branch information
underfin committed Jul 21, 2020
1 parent be4df12 commit 0a86165
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/runtime-core/src/vnode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -448,7 +448,7 @@ export function cloneVNode<T, U>(
// however we don't want block nodes to de-opt their children, so if the
// vnode is a block node, we only add the FULL_PROPS flag to it.
patchFlag: extraProps
? vnode.dynamicChildren
? vnode.dynamicChildren || vnode.patchFlag & PatchFlags.NEED_PATCH
? vnode.patchFlag | PatchFlags.FULL_PROPS
: PatchFlags.BAIL
: vnode.patchFlag,
Expand Down

0 comments on commit 0a86165

Please sign in to comment.