Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
mpylon committed Jul 17, 2024
1 parent b865cc4 commit 8d699e0
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 8d699e0

Please sign in to comment.