Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
mpylon committed Jul 26, 2024
1 parent 413ff78 commit d69249a
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 d69249a

Please sign in to comment.