I have a MultiSelect that is two-way bound to a List<Guid> selectedValues. If selectedValues changes, I expect the MultiSelect to properly reflect the change once StateHasChanged() is called. That is not the case, I have to do something like
selectedValues = new List<Guid>(selectedValues)
Apparently, creating a new reference triggers the notification and forces the component to redraw itself. This seems very hackish and counterintuitive. All components should check their state when StateHasChanged() is called and determine whether a UI update is necessary.
selectedValues = new List<Guid>(selectedValues)
Apparently, creating a new reference triggers the notification and forces the component to redraw itself. This seems very hackish and counterintuitive. All components should check their state when StateHasChanged() is called and determine whether a UI update is necessary.