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 Aug 4, 2020
1 parent c8e553a commit ee7d435
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/MatBlazor/Components/MatChipSet/MatChipSet.cs
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,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 ee7d435

Please sign in to comment.