Skip to content

Commit

Permalink
Issue SamProf#671: MatChipSet.SelectedChips should match on Label, no…
Browse files Browse the repository at this point in the history
…t MatChip hash.
  • Loading branch information
Peter Thomas committed Oct 14, 2020
1 parent 11d6a3c commit 3605111
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/MatBlazor/Components/MatChipSet/MatChipSet.cs
Original file line number Diff line number Diff line change
Expand Up @@ -78,11 +78,9 @@ public MatChip[] SelectedChips
}
else
{
var selected = new HashSet<MatChip>(value);
var selected = new HashSet<string>(value.Select(x => x.Label));
foreach (var chip in _chips)
{
chip.IsSelected = selected.Contains(chip);
}
chip.IsSelected = selected.Contains(chip.Label);
}
this.InvokeAsync(StateHasChanged);
}
Expand Down

0 comments on commit 3605111

Please sign in to comment.