fix text dynamic node not assigning id

This commit is contained in:
Evan Almloff committed 2023-02-09 09:14:07 -06:00
1 parent a6c13c8ad0
commit 6bea6f6385
1 file changed
+1 -4
+1 -4
View File
@@ -116,9 +116,6 @@ class Interpreter {
node.remove();
}
}
CreateRawText(text) {
this.stack.push(document.createTextNode(text));
}
CreateTextNode(text, root) {
const node = document.createTextNode(text);
this.nodes[root] = node;
@@ -306,7 +303,7 @@ class Interpreter {
this.CreatePlaceholder(edit.id);
break;
case "CreateTextNode":
this.CreateTextNode(edit.value);
this.CreateTextNode(edit.value, edit.id);
break;
case "HydrateText":
this.HydrateText(edit.path, edit.value, edit.id);