SfProgressButton causes rendering error

If a page has a SfProgressButton then a call to NavigationManager.NavigateTo() raises a rendering error.
Sample project attached.

How to reproduce:













Replacing the SfProgressButton with a normal SfButton does not cause this error, the problem must be in the SfProgressButton.


Attachment: BlazorApp4_384fd04d.zip

1 Reply 1 reply marked as answer

MK Mohan Kumar Ramasamy Syncfusion Team August 10, 2020 01:28 PM UTC

Hi J Theon, 
 
We have checked your reported issue, we can resolve your issue in sample level, we have changed the navigation to work asynchronously. Please refer below code snippets. 
 
<SfButton IsPrimary="false" Content="Back to Page One" Type="button" @onclick="BtnGoToPageOne"> 
</SfButton> 
 
@* SfProgressButton raises a rendering error *@ 
<SfProgressButton Content="a test btn" IsPrimary="true" @onclick="BtnImportSelectedOnClick"></SfProgressButton> 
 
@* With simple SfButton works fine! *@ 
 @*<SfButton Content="a test btn" IsPrimary="true" @onclick="BtnImportSelectedOnClick"></SfButton>*@  
 
@code { 
 
    private async Task BtnGoToPageOne() 
    { 
        await Task.Run(()=> NavigationManager.NavigateTo("/page-1")); 
    } 
 
    private void BtnImportSelectedOnClick() 
    { 
 
    } 
} 
 
For your reference, we have resolved issue in our sample, please refer below link. 
 
 
Please let us know, if you need any further assistance, 
 
Regards, 
Mohankumar R 


Marked as answer
Loader.
Up arrow icon