Skip to content

Commit

Permalink
Detach component frame on destroy
Browse files Browse the repository at this point in the history
  • Loading branch information
jstarry committed May 31, 2019
1 parent 0f4ca79 commit c314c4f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/html.rs
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,7 @@ where
ComponentUpdate::Destroy => {
// TODO this.component.take() instead of destroyed
this.component.as_mut().unwrap().destroy();
this.last_frame.as_mut().unwrap().detach(this.element.as_node());
this.destroyed = true;
}
}
Expand Down

0 comments on commit c314c4f

Please sign in to comment.