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: Properties are not passed to Custom Elements that extend built-in elements #32135

Open
edoardocavazza opened this issue Jan 20, 2025 · 1 comment
Labels
Status: Unconfirmed A potential issue that we haven't yet confirmed as a bug

Comments

@edoardocavazza
Copy link

React version: 19.0.0

Steps To Reproduce

  1. Define a Custom Element x-custom-link that extends the a element
  2. Render the custom element using the is attribute: <a is="x-custom-link"></a>
  3. Pass a property to the element

Link to code example: https://codesandbox.io/p/sandbox/musing-shadow-ttt8hc

The current behavior

Properties are correctly passed to autonomous custom elements but not to those that extend builtin elements.

The expected behavior

Properties are passed to custom elements that extend builtin elements as well.

@edoardocavazza edoardocavazza added the Status: Unconfirmed A potential issue that we haven't yet confirmed as a bug label Jan 20, 2025
@edoardocavazza
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Unconfirmed A potential issue that we haven't yet confirmed as a bug
Projects
None yet
Development

No branches or pull requests

1 participant