Hello,
When I click the progress button I get the following exception:
System.NullReferenceException: Object reference not set to an instance of an object.
at Syncfusion.Blazor.SplitButtons.SfProgressButton.StartSpinner()
at Syncfusion.Blazor.SplitButtons.SfProgressButton.InitTimer(Double perc)
at Syncfusion.Blazor.SplitButtons.SfProgressButton.ClickHandler(MouseEventArgs e)
at Microsoft.AspNetCore.Components.ComponentBase.CallStateHasChangedOnAsyncCompletion(Task task)
at Syncfusion.Blazor.Internal.SfBaseUtils.InvokeEvent[T](Object eventFn, T eventArgs)
at Syncfusion.Blazor.Buttons.SfButton.OnClickHandler(MouseEventArgs args)
at Microsoft.AspNetCore.Components.ComponentBase.CallStateHasChangedOnAsyncCompletion(Task task)
at Microsoft.AspNetCore.Components.RenderTree.Renderer.GetErrorHandledTask(Task taskToHandle)
fail: Microsoft.AspNetCore.Components.Server.Circuits.CircuitHost[111]
Unhandled exception in circuit 'O55obKftpUIgIUfsHPJfguHHxYd-88gpD1jF7jwQcNg'.
System.NullReferenceException: Object reference not set to an instance of an object.
at Syncfusion.Blazor.SplitButtons.SfProgressButton.StartSpinner()
at Syncfusion.Blazor.SplitButtons.SfProgressButton.InitTimer(Double perc)
at Syncfusion.Blazor.SplitButtons.SfProgressButton.ClickHandler(MouseEventArgs e)
at Microsoft.AspNetCore.Components.ComponentBase.CallStateHasChangedOnAsyncCompletion(Task task)
at Syncfusion.Blazor.Internal.SfBaseUtils.InvokeEvent[T](Object eventFn, T eventArgs)
at Syncfusion.Blazor.Buttons.SfButton.OnClickHandler(MouseEventArgs args)
at Microsoft.AspNetCore.Components.ComponentBase.CallStateHasChangedOnAsyncCompletion(Task task)
at Microsoft.AspNetCore.Components.RenderTree.Renderer.GetErrorHandledTask(Task taskToHandle)
My code is:
<SfProgressButton CssClass="e-success"
Content="Save"
IsPrimary="true"
</SfProgressButton>
The method SaveAsync is called but I get the exception after completing the task. The button works fine when I put it in an EditForm (I also give it a submit html attribute) and there is no exception. The button is inside a dialog component if that helps.