Skip to content

Commit

Permalink
xilem_web: Fix #465, by actually replacing the old element in the DOM…
Browse files Browse the repository at this point in the history
…-tree (#468)

Fixes #465
  • Loading branch information
Philipp-M authored Jul 29, 2024
1 parent 1b1a1d3 commit b71f533
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 b71f533

Please sign in to comment.