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: JSX "DetailsHtmlAttributes" missing "name" attribute #381

Open
mihail-semyonov opened this issue Nov 10, 2024 · 1 comment
Open

BUG: JSX "DetailsHtmlAttributes" missing "name" attribute #381

mihail-semyonov opened this issue Nov 10, 2024 · 1 comment

Comments

@mihail-semyonov
Copy link

Hey, I'm getting following typescript error when using name attribute on details html element:

Type '{ children: Element[]; name: string; }' is not assignable to type 'DetailsHtmlAttributes<HTMLDetailsElement>'.
  Property 'name' does not exist on type 'DetailsHtmlAttributes<HTMLDetailsElement>'.
<details name="test">
  <summary>Test</summary>
  <div>Content</div>
</details>

According to https://developer.mozilla.org/en-US/docs/Web/HTML/Element/details#name details element can have name attribute

@titoBouzout
Copy link
Contributor

There's a PR that besides some other unrelated stuff it also adds that attributes #380
reviews welcome!

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

2 participants