From 794de6709ee2e0dce09ece69d9c388a6e9129363 Mon Sep 17 00:00:00 2001 From: Nico Burns Date: Tue, 8 Oct 2024 13:03:43 +0100 Subject: [PATCH] Snapshot node when setting an attribute --- packages/dioxus-blitz/src/documents/dioxus_document.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/dioxus-blitz/src/documents/dioxus_document.rs b/packages/dioxus-blitz/src/documents/dioxus_document.rs index e4919be3..668d2391 100644 --- a/packages/dioxus-blitz/src/documents/dioxus_document.rs +++ b/packages/dioxus-blitz/src/documents/dioxus_document.rs @@ -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" {