fix issue with t-if confusing patching algorithm

This commit is contained in:
Géry Debongnie
2019-02-15 14:35:46 +01:00
parent d9ef6d1e93
commit d7d0912853
5 changed files with 116 additions and 81 deletions
+2 -2
View File
@@ -38,8 +38,8 @@ function renderToDOM(
return document.createTextNode(vnode.text!);
}
const node = document.createElement(vnode.sel!);
patch(node, vnode);
return node;
const result = patch(node, vnode);
return result.elm as HTMLElement;
}
function renderToString(