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

fix(types): allow data-* attributes for props forwarded to HTML elements #1741

Merged
merged 3 commits into from
Jul 8, 2023

Conversation

metonym
Copy link
Collaborator

@metonym metonym commented Jun 4, 2023

Fixes issue #1740, related PR #1739

Best reviewed by commit.

I patched sveld to allow data-* attributes to be passed to components that extend HTML elements.

As a result, data-* attributes should be valid, while other attributes not included in the HTML attributes or component props should still produce a type error:

Screen Shot 2023-06-04 at 9 52 05 AM

@metonym metonym requested a review from theetrain June 4, 2023 16:53
@metonym metonym merged commit 7fdc2ef into master Jul 8, 2023
2 checks passed
@metonym metonym deleted the upgrade-sveld-18.1 branch July 8, 2023 23:41
@metonym
Copy link
Collaborator Author

metonym commented Jul 8, 2023

Fixed in v0.76.1

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

Successfully merging this pull request may close these issues.

None yet

1 participant