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

<Link> with hash prop not working as expected since 1.106.0 #3741

Open
flipvh opened this issue Mar 11, 2025 · 0 comments
Open

<Link> with hash prop not working as expected since 1.106.0 #3741

flipvh opened this issue Mar 11, 2025 · 0 comments

Comments

@flipvh
Copy link

flipvh commented Mar 11, 2025

Which project does this relate to?

Router

Describe the bug

I noticed for a while that a Link with hash prop isnt working anymore to scroll to that position in the scroll window. In my own code it works when I click it twice. But in the link below it doesnt work at all since 1.106.0: v1.105.5...v1.106.0

Your Example Website or App

https://stackblitz.com/edit/tanstack-router-wzvsy46k?file=package.json

Steps to Reproduce the Bug or Issue

  1. Go to page 'Layout B'
  2. Click 'middle' on the top
  3. Notice it doesnt scroll to the anchor.
  4. Now downgrade to 1.105.5
  5. repeat step 1 and 2 and notice it works.

Expected behavior

Using should scroll to the anchor.

Screenshots or Videos

No response

Platform

  • OS: macOS
  • Browser: Chrome
  • Version: 135

Additional context

No response

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

No branches or pull requests

1 participant