Skip to content

Commit

Permalink
xilem_web: Fix linebender#465, by actually adding the replacing the o…
Browse files Browse the repository at this point in the history
…ld element in the DOM-tree
  • Loading branch information
Philipp-M committed Jul 29, 2024
1 parent 1b1a1d3 commit ce6d0a1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions xilem_web/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,9 @@ impl AnyPod {
this: &mut PodMut<'_, DynNode, Box<dyn Any>>,
node: Pod<E, P>,
) {
this.parent
.replace_child(node.node.as_ref(), this.node.as_ref())
.unwrap_throw();
this.node.inner = Box::new(node.node);
*this.props = Box::new(node.props);
}
Expand Down

0 comments on commit ce6d0a1

Please sign in to comment.