Skip to content

Commit

Permalink
Log blitz node_id in set_attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
nicoburns committed Oct 8, 2024
1 parent ac5016a commit ee873a3
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions packages/dioxus-blitz/src/documents/dioxus_document.rs
Original file line number Diff line number Diff line change
Expand Up @@ -674,10 +674,17 @@ impl WriteMutations for MutationWriter<'_> {
value: &AttributeValue,
id: ElementId,
) {
let node_id = self.state.element_to_node_id(id);

#[cfg(feature = "tracing")]
tracing::info!("set_attribute id:{} ns: {:?} name:{}", id.0, ns, name);
tracing::info!(
"set_attribute node_id:{} ns: {:?} name:{}, value:{:?}",
node_id,
ns,
name,
value
);

let node_id = self.state.element_to_node_id(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 ee873a3

Please sign in to comment.