Error on progress button click

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"
                          [email protected]>
        </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.

1 Reply

MK Mohan Kumar Ramasamy Syncfusion Team October 20, 2020 09:48 AM UTC

Hi Ivan, 
 
We have checked your provided query, we are unable to reproduce the reported issue in our end. So, we have prepared a sample based on this. Please refer below sample link. 
 
 
If you are still facing the issue, kindly share the below details. 
 
  • If possible, try to reproduce the reported issue in provided sample or share the issue reproducible sample
Please provide the above requested information, based on that we will check and provide you a better solution quickly. 
 
Regards, 
Mohankumar R 


Loader.
Up arrow icon