Your own basic example works fine in 18.1.53 and is broken in 18.1.54. I know you were trying to solve performance issues and multiple event handlers that were not unregistering. As a result, the dropdown is unusable and results in an empty dropdown and an exception. I was really looking forward to this release as you promised a fix for the performance issues plaguing the dropdown list, unfortunately looks like the fix missed the mark.
crit: Microsoft.AspNetCore.Components.WebAssembly.Rendering.WebAssemblyRenderer[100]
Unhandled exception rendering component: Could not find 'sfBlazor' in 'window'.
Error: Could not find 'sfBlazor' in 'window'.
at Anonymous function (https://localhost:44310/_framework/blazor.webassembly.js:1:9192)
at Array.prototype.forEach (native code)
at p (https://localhost:44310/_framework/blazor.webassembly.js:1:9142)
at Anonymous function (https://localhost:44310/_framework/blazor.webassembly.js:1:9866)
at Promise (native code)
at e.jsCallDispatcher.beginInvokeJSFromDotNet (https://localhost:44310/_framework/blazor.webassembly.js:1:9835)
at _mono_wasm_invoke_js_marshalled (https://localhost:44310/_framework/wasm/dotnet.3.2.0.js:1:171263)
at Module[_mono_wasm_invoke_method] (https://localhost:44310/_framework/wasm/dotnet.3.2.0.js:1:195650)
at BINDING.call_method (https://localhost:44310/_framework/wasm/dotnet.3.2.0.js:1:160810)
Here's sample code:
@page "/debug"
<h3>Debug</h3>
<SfDropDownList TValue="string" TItem="Data" Placeholder="e.g: Aero" IgnoreAccent=true DataSource="@Country">
<DropDownListFieldSettings Value="Name"></DropDownListFieldSettings>
<DropDownListEvents TValue="string" OnValueSelect="DataSelected"></DropDownListEvents>
</SfDropDownList>
<br />
<textarea style="width:100%;height:800px;">@events.ToString()</textarea>
@code {
public class Data
{
public string Name { get; set; }
}
public StringBuilder events = new StringBuilder();
List<Data> Country = new List<Data>
{
new Data() { Name = "Aeróbics"},
new Data() { Name = "Aeróbics en Agua"},
new Data() { Name = "Aerografía"},
new Data() { Name = "Águilas"},
new Data() { Name = "Ajedrez"},
new Data() { Name = "Ala Delta"},
new Data() { Name = "Álbumes de Música"},
new Data() { Name = "Alusivos"},
new Data() { Name = "Análisis de Escritura a Mano"},
};
private void DataSelected(Syncfusion.Blazor.DropDowns.SelectEventArgs args)
{
events.Append($"{DateTime.Now} Value '{args.ItemData.ToString()}' selected.{System.Environment.NewLine}");
}
}