Skip to content

Commit

Permalink
Fixes #16346 (#16347)
Browse files Browse the repository at this point in the history
  • Loading branch information
mpylon authored Aug 30, 2024
1 parent 4f2dd67 commit 82d6408
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Avalonia.Controls/VirtualizingStackPanel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -842,6 +842,8 @@ private void RecycleElementOnItemRemoved(Control element)
{
Debug.Assert(ItemContainerGenerator is not null);

_scrollAnchorProvider?.UnregisterAnchorCandidate(element);

var recycleKey = element.GetValue(RecycleKeyProperty);

if (recycleKey is null || recycleKey == s_itemIsItsOwnContainer)
Expand Down

0 comments on commit 82d6408

Please sign in to comment.