From 4238d0ef2b1aa5a2da14b6423f681536afd549aa Mon Sep 17 00:00:00 2001 From: Ashley Wulber Date: Mon, 4 Nov 2024 22:30:38 -0500 Subject: [PATCH] fix: avoid overwriting id when diffing children this can interact with the named IDs, and cause state mismatches, and doesn't need to be done, because the ID will be updated by the diff method if there is a Tag match anyways. --- core/src/widget/tree.rs | 3 --- 1 file changed, 3 deletions(-) diff --git a/core/src/widget/tree.rs b/core/src/widget/tree.rs index 69deee51..e0fae035 100644 --- a/core/src/widget/tree.rs +++ b/core/src/widget/tree.rs @@ -334,9 +334,6 @@ impl Tree { ) { let c = &mut id_list[child_state_i]; - if len_changed { - c.id.clone_from(new_id); - } child_state_i += 1; c } else {