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

Unexpected link props rendered onto DOM #3484

Open
nstepien opened this issue Feb 19, 2025 · 0 comments
Open

Unexpected link props rendered onto DOM #3484

nstepien opened this issue Feb 19, 2025 · 0 comments

Comments

@nstepien
Copy link
Contributor

Which project does this relate to?

Router

Describe the bug

The from prop is unexpectedly added to the <a>.
I'm not sure if other link options props are also passed down to the DOM, search/params are correctly trimmed, it might only be an issue with from.

Your Example Website or App

https://stackblitz.com/edit/github-hsfvmej8?file=src%2Froutes%2F__root.tsx

Steps to Reproduce the Bug or Issue

  1. Render a link with a from
  2. Notice how the from attribute is rendered in the DOM
  3. This also happens with createLink'd link components

Expected behavior

The from prop should not be set on <a>.

Screenshots or Videos

Image

Platform

  • OS: Windows
  • Browser: Chrome
  • Version: 133.0.6943.127

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