We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0dc307e commit e83b4b8Copy full SHA for e83b4b8
1 file changed
CodeBeam.MudBlazor.Extensions/Components/ListExtended/MudListExtended.razor.cs
@@ -1156,13 +1156,14 @@ protected void SelectAllItems(bool? deselect = false)
1156
_allSelected = true;
1157
}
1158
1159
+ var selectedItems = items.Where(x => x.IsSelected).Select(y => y.Value).ToHashSet(_comparer);
1160
if (ItemCollection != null)
1161
{
- SelectedValues = deselect == true ? Enumerable.Empty<T>() : ItemCollection.ToHashSet(_comparer);
1162
+ SelectedValues = deselect == true ? Enumerable.Empty<T>() : selectedItems;
1163
1164
else
1165
- SelectedValues = items.Where(x => x.IsSelected).Select(y => y.Value).ToHashSet(_comparer);
1166
+ SelectedValues = selectedItems;
1167
1168
1169
if (MudSelectExtended != null)
0 commit comments