Hello,
I'm having an hard time to understand why my error arent showing in my blazor app when they happen inside the OnClick event of an DropDownButtonItem.
I've joined some code to reproduce the problem. When you click on "twitter" inside the Share DropDownButton, you should be able to see the "System.Exception" in the console log of the browser (f12) but nothing happen.
I can clearly see the "1" from the Console.WriteLine right before it but not the exception.
In my program, I was expecting to see our custom error handling to catch that error and show an error message to the client, but instead, nothing happen since we dont know the code failed, nor do we receive any answer
Thank you
<div class="demo-section auto">
<TelerikDropDownButton Icon="@SvgIcon.Share">
<DropDownButtonContent>Share</DropDownButtonContent>
<DropDownButtonItems>
<DropDownButtonItem Icon="@SvgIcon.Twitter" OnClick="@(()=>OnItemClick("Twitter"))">Twitter</DropDownButtonItem>
</DropDownButtonItems>
</TelerikDropDownButton>
</div>
@code {
private void OnItemClick(string item)
{
Console.WriteLine(1);
throw new System.Exception();
Console.WriteLine(2);
}
}