Skip to content

Commit

Permalink
fix: avoid overwriting id when diffing children
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
wash2 authored and jackpot51 committed Nov 5, 2024
1 parent a7e035c commit 57288e5
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions core/src/widget/tree.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 57288e5

Please sign in to comment.