Hello,
I am trying to upgrade from 18.3 to 18.4.0.35 and have a SfAccumulationChart with an OnPointClick which used to work, but throws a NullReferenceException now if it is enabled.
Inside the SfAccumulationChart I have ChartEvents defined like this:
<ChartEvents OnPointClick="pointClickClient"></ChartEvents>
the signature of pointClickClient is:
public async void pointClickClient(PointEventArgs args)
and this causes the following exception when the page is loaded:
warn: Microsoft.AspNetCore.Components.Server.Circuits.RemoteRenderer[100]
Unhandled exception rendering component: Object reference not set to an instance of an object.
System.NullReferenceException: Object reference not set to an instance of an object.
at Syncfusion.Blazor.Charts.ChartEvents.OnInitializedAsync()
at Microsoft.AspNetCore.Components.ComponentBase.RunInitAndSetParametersAsync()
I have also tried to set the OnPointClick to a lambda function which only calls StateHasChanged() but I still get the same exception:
<ChartEvents OnPointClick="@((a) => {StateHasChanged();})"></ChartEvents>