Merge pull request #789 from Demonthos/fix-replacing-a-dynamic-text-node-native-core

Fix replacing a dynamic text node in native core
This commit is contained in:
Jon Kelley authored and GitHub committed 2023-01-21 00:36:41 -08:00
commit dfcc738747
1 file changed
+1 -2
+1 -2
View File
@@ -195,8 +195,7 @@ impl<S: State<V>, V: FromAnyValue> RealDom<S, V> {
text: value.to_string(),
});
let node_id = self.create_node(node);
let node = self.tree.get_mut(node_id).unwrap();
node.node_data.element_id = Some(id);
self.set_element_id(node_id, id);
self.stack.push(node_id);
mark_dirty(node_id, NodeMask::new().with_text(), &mut nodes_updated);
}