Skip to content

Commit

Permalink
field should not be static
Browse files Browse the repository at this point in the history
  • Loading branch information
Edward Miller committed Jan 25, 2024
1 parent 6feaaa1 commit f27e9cb
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Maui.DataGrid/DataGrid.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public partial class DataGrid
private readonly object _reloadLock = new();
private readonly object _sortAndPaginateLock = new();
private DataGridColumn? _sortedColumn;
private static HashSet<object>? _internalItemsHashSet;
private HashSet<object>? _internalItemsHashSet;

#endregion Fields

Expand Down Expand Up @@ -406,7 +406,8 @@ private void SortAndPaginate(SortData? sortData = null)
return;
}

_internalItemsHashSet = null;
// Reset internal hash set, used for fast lookups
self._internalItemsHashSet = null;

// Unsubscribe from old collection's change event
if (o is INotifyCollectionChanged oldCollection)
Expand Down

0 comments on commit f27e9cb

Please sign in to comment.