Fixed errors, everything seems to work!
h3rald h3rald@h3rald.com
Tue, 14 Apr 2020 14:09:45 +0200
1 files changed,
2 insertions(+),
2 deletions(-)
jump to
M
h3.js
→
h3.js
@@ -60,7 +60,7 @@
from(data) { this.type = data.type; this.value = data.value; - this.element = data.value; + this.element = data.element; this.id = data.id; this.children = data.children; this.attributes = data.attributes;@@ -428,7 +428,7 @@ // Configure update function
const vnode = router.routes[router.route.def](); updateFn = () => { const fn = router.routes[router.route.def]; - vnode.update({node: element, vnode: fn()}) + vnode.update({node: element.childNodes[0], vnode: fn()}) } }