Skip to content

Commit

Permalink
fix: patch do nothing when lastVnode and nextVnode are both Portal
Browse files Browse the repository at this point in the history
  • Loading branch information
yuche committed Mar 8, 2018
1 parent 9338a0a commit cd99801
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/nerv/src/vdom/patch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,8 @@ export function patch (
options.afterUpdate(nextVnode)
} else if (vtype & VType.Text) {
return patchVText(lastVnode, nextVnode)
} else if (vtype & VType.Portal) {
patchChildren(lastVnode.type, lastVnode.children, nextVnode.children, context, isSvg as boolean)
}
nextVnode.dom = newDom
} else {
Expand Down

0 comments on commit cd99801

Please sign in to comment.