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

Adding and removing query params from url with useNavigate scrolls to top #2162

Closed
jweb89 opened this issue Nov 16, 2022 · 1 comment
Closed
Labels
STATUS-1: needs triage New issue which needs to be triaged TYPE: bug Something isn't working
Milestone

Comments

@jweb89
Copy link
Contributor

jweb89 commented Nov 16, 2022

Qwik Version

qwik-city:0.0.122 qwik:0.13.3 stackblitz is different version due to stackblitz reloading issues

Operating System (or Browser)

Browser chrome

Node Version (if applicable)

16

Which component is affected?

Qwik City

Expected Behaviour

When adding or removing query params with ? using useNavigate the page gets scrolled to top

Actual Behaviour

When adding or removing query params with ? using useNavigate the page should not scrollToTop

Additional Information

https://stackblitz.com/edit/qwik-starter-ps4otn?file=src%2Fcomponents%2Ftest%2Findex.jsx

To test this it's probably easier to copy the stackblitz url in a new window. The qwik and qwik-city versions are a little older but I had issue with the server reloading in stackblitz on the latest. In my local environment the issue still exists with the latest versions qwik-0.13.3 and qwik-city:0.0.122

@jweb89 jweb89 added TYPE: bug Something isn't working STATUS-1: needs triage New issue which needs to be triaged labels Nov 16, 2022
@stackblitz
Copy link

stackblitz bot commented Nov 16, 2022

Fix this issue in StackBlitz Codeflow Start a new pull request in StackBlitz Codeflow.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
STATUS-1: needs triage New issue which needs to be triaged TYPE: bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants