fix replacing a dynamic text node in native core
This commit is contained in:
1 parent
f65b051102
commit
dc768fee2f
1 file changed
+1
-2
@@ -195,8 +195,7 @@ impl<S: State<V>, V: FromAnyValue> RealDom<S, V> {
|
|||||||
text: value.to_string(),
|
text: value.to_string(),
|
||||||
});
|
});
|
||||||
let node_id = self.create_node(node);
|
let node_id = self.create_node(node);
|
||||||
let node = self.tree.get_mut(node_id).unwrap();
|
self.set_element_id(node_id, id);
|
||||||
node.node_data.element_id = Some(id);
|
|
||||||
self.stack.push(node_id);
|
self.stack.push(node_id);
|
||||||
mark_dirty(node_id, NodeMask::new().with_text(), &mut nodes_updated);
|
mark_dirty(node_id, NodeMask::new().with_text(), &mut nodes_updated);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user