Skip to content

Commit 0c1a502

Browse files
committed
Hotfix for TableOfContents always moving back to top in OnAfterRenderAsync which makes bookmarks to a specific section not work.
1 parent 9deeb89 commit 0c1a502

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/Demo/Shared/Components/TableOfContents.razor.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ public override int GetHashCode()
5656
protected NavigationManager NavigationManager { get; set; } = default!;
5757

5858
/// <summary>
59-
/// Gets or sets the heading for the ToC
59+
/// Gets or sets the heading for the ToC
6060
/// Defaults to 'In this article'
6161
/// </summary>
6262
[Parameter]
@@ -89,7 +89,7 @@ protected override async Task OnAfterRenderAsync(bool firstRender)
8989
_expanded = false;
9090
}
9191

92-
await BackToTopAsync();
92+
//await BackToTopAsync();
9393
await QueryDomAsync();
9494

9595
}

0 commit comments

Comments
 (0)