Merge pull request #18299 from abpframework/8.0-prevent-stackoverflow-blazor

Better PageHeader rendering for Settings [8.0]
pull/18323/head
Gizem Mutu Kurt 1 year ago committed by GitHub
commit 0800e636c0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -45,10 +45,15 @@ public partial class SettingManagement
SelectedGroup = GetNormalizedString(SettingComponentCreationContext.Groups.First().Id);
}
protected override Task OnAfterRenderAsync(bool firstRender)
protected override async Task OnAfterRenderAsync(bool firstRender)
{
StateHasChanged();
return base.OnAfterRenderAsync(firstRender);
if (firstRender)
{
await Task.Yield();
await InvokeAsync(StateHasChanged);
}
await base.OnAfterRenderAsync(firstRender);
}
protected virtual string GetNormalizedString(string value)

Loading…
Cancel
Save