The Wayback Machine - https://web.archive.org/web/20220214050229/https://github.com/dotnet/aspnetcore/issues/40190
Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Blazor NavigationManager.NavigateTo always scrolls page to the top. #40190

Open
1 task done
groogiam opened this issue Feb 14, 2022 · 1 comment
Open
1 task done

Blazor NavigationManager.NavigateTo always scrolls page to the top. #40190

groogiam opened this issue Feb 14, 2022 · 1 comment

Comments

@groogiam
Copy link

@groogiam groogiam commented Feb 14, 2022

Is there an existing issue for this?

  • I have searched the existing issues

Describe the bug

It appears the navigation manger in .NET 6 always scrolls the page to the top even if NavigateTo call is just updating the query string.

Expected Behavior

Navigations that do not change the page should not reset the viewport position.

Steps To Reproduce

Will post a repro shortly.

Exceptions (if any)

No response

.NET Version

6.0.102

Anything else?

No response

@groogiam
Copy link
Author

@groogiam groogiam commented Feb 14, 2022

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant