Skip to content

Commit

Permalink
Snapshot node when setting an attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
nicoburns committed Oct 8, 2024
1 parent ee873a3 commit 794de67
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/dioxus-blitz/src/documents/dioxus_document.rs
Original file line number Diff line number Diff line change
Expand Up @@ -685,6 +685,8 @@ impl WriteMutations for MutationWriter<'_> {
value
);

self.doc.snapshot_node(node_id);

let node = self.doc.get_node_mut(node_id).unwrap();
if let NodeData::Element(ref mut element) = node.raw_dom_data {
if element.name.local == local_name!("input") && name == "checked" {
Expand Down

0 comments on commit 794de67

Please sign in to comment.