Welcome to the Blazor feedback portal. We’re happy you’re here! If you have feedback on how to improve the Blazor, we’d love to hear it!

  • Check out the features or bugs others have reported and vote on your favorites. Feedback will be prioritized based on popularity.
  • If you have feedback that’s not listed yet, submit your own.

Thanks for joining our community and helping improve Syncfusion products!

2
Votes

Hi,

When using the "EventCallback" "SfChip.SelectedChipsChanged" then bad behavior is observed.

The Chip selection is updated/reverted again after the "

EventCallback" and this is bad when there are multiple async
callbacks.



<SfChip Selection="SelectionType.Multiple" SelectedChipsChanged="OnSelectedItemsChangedAsync">

...
private async Task OnSelectedItemsChangedAsync(string[] itemsSelected)
{
    await Task.Delay(5000);
}

How to reproduce with above code:
1) Click Chip1
2) Wait 2 seconds and click Chip2

I think it is because "SfChip.SelectedChips" are set before and after the "
EventCallback":

internal async Task UpdateSelectedChips() => this.SelectedChips = await SfBaseUtils.UpdateProperty(((IEnumerable) this.SelectedChips).ToArray(), this._selectedChips, this.SelectedChipsChanged);


Best Regards,

Anders Havn