Skip to content

Commit

Permalink
Merge #502
Browse files Browse the repository at this point in the history
502: Detach component frame on destroy r=DenisKolodin a=jstarry

Fixes #494

Co-authored-by: Justin Starry <jstarry@users.noreply.github.com>
  • Loading branch information
bors[bot] and jstarry committed Jun 2, 2019
2 parents 0f4ca79 + c314c4f commit 792a254
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/html.rs
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 792a254

Please sign in to comment.