From 57288e5a3e1d238572f15153d7c0a7fe5f1e43da 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 963a738137..b17d9a123f 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 {