0
lan.dang created
- ABP Framework version: v7.0
- UI type: Blazor
- DB provider: EF Core
- Tiered (MVC) or Identity Server Separated (Angular): no
- Exception message and stack trace:
- Steps to reproduce the issue:" When open new page, system still keep previous position. I want to it reset page to top, how can I do that?
Markdown supported.
Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
14 Answer(s)
-
0
hi
You can try to call the javascript function to scroll to the top on
LocationChangedevent.https://blazor-university.com/routing/detecting-navigation-events/ https://learn.microsoft.com/en-us/dotnet/api/microsoft.aspnetcore.components.navigationmanager.locationchanged?view=aspnetcore-7.0
Markdown supported.Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)


