Blazored / Typeahead

Typeahead control for Blazor applications
https://blazored.github.io/Typeahead/
MIT License
436 stars 103 forks source link

Consider using Invoke #3

Closed SQL-MisterMagoo closed 5 years ago

SQL-MisterMagoo commented 5 years ago

https://github.com/Blazored/Typeahead/blob/62986b4cdc48af42137a834dcbe67a272e5de660/src/Blazored.Typeahead/BlazoredTypeahead.razor.cs#L72

In the Search method you are executing on the context of a timer, and might want to use

Invoke (StateHasChanged);

To protect against synchronisation context issues.

chrissainty commented 5 years ago

Thanks for this, I've merged a fix.