Skip to content

Commit

Permalink
Merge 7225588 into e28e44c
Browse files Browse the repository at this point in the history
  • Loading branch information
developit committed May 2, 2019
2 parents e28e44c + 7225588 commit 7b5ff64
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/diff/index.js
Expand Up @@ -272,7 +272,7 @@ function diffElementNodes(dom, newVNode, oldVNode, context, isSvg, excessDomChil
}
let oldHtml = oldProps.dangerouslySetInnerHTML;
let newHtml = newProps.dangerouslySetInnerHTML;
if (newHtml || oldHtml) {
if ((newHtml || oldHtml) && excessDomChildren==null) {
// Avoid re-applying the same '__html' if it did not changed between re-render
if (!newHtml || !oldHtml || newHtml.__html!=oldHtml.__html) {
dom.innerHTML = newHtml && newHtml.__html || '';
Expand Down

0 comments on commit 7b5ff64

Please sign in to comment.