we should not have a mapView as root, add a div
because if we do a mapView of this view from the parent, it won't work as the parent is swapped from underneath that binding and it can't replace it
This commit is contained in:
@@ -238,6 +238,8 @@ class TemplateBuilder {
|
||||
const newNode = renderNode(node);
|
||||
if (node.parentNode) {
|
||||
node.parentNode.replaceChild(newNode, node);
|
||||
} else {
|
||||
console.warn("Could not update parent of node binding");
|
||||
}
|
||||
node = newNode;
|
||||
}
|
||||
@@ -342,4 +344,4 @@ for (const [ns, tags] of Object.entries(TAG_NAMES)) {
|
||||
return this.elNS(ns, tag, attributes, children);
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user