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

Bug: Page retains scroll position when navigating between pages #55

Open
Vaibhavkg04 opened this issue Dec 10, 2024 · 1 comment · May be fixed by #58
Open

Bug: Page retains scroll position when navigating between pages #55

Vaibhavkg04 opened this issue Dec 10, 2024 · 1 comment · May be fixed by #58
Labels
bug Something isn't working

Comments

@Vaibhavkg04
Copy link

Describe the bug

When navigating between pages in the application, the new page does not load from the top (default scroll position). Instead, it opens at the scroll position of the previous page. This behavior creates a confusing user experience, as users expect new pages to start from the top.

To Reproduce

  1. Navigate to Home page.
  2. Scroll down to a random position .
  3. Use navigation bar to move to other page (eg-about).
  4. Observe that other does not load from the top but retains the scroll position.

Expected behavior

When navigating to a new page, the scroll position should reset to the top of the page (scrollTop = 0).

Add Screenshots or Recordings

No response

Please provide the environment you discovered this bug in

No response

Anything else?

No response

@Vaibhavkg04 Vaibhavkg04 added the bug Something isn't working label Dec 10, 2024
@Pal-prakash2
Copy link

Hey @Vaibhavkg04 , Can you assign this to me and i will get started right away

@Vaibhavkg04 Vaibhavkg04 linked a pull request Dec 11, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants