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: Preact adapter spreading props as children #1084

Merged
merged 1 commit into from
May 15, 2024

Conversation

marvinhagemeister
Copy link
Contributor

The Preact adapter has a bug where it spreads the remaining props as if they were children. But because random objects are not allowed to be rendered to prevent security vulnerabilities, Preact will throw an error. This works the same way in React.

Screenshot 2024-04-09 at 12 05 22

This issue can be fixed by spreading the remaining rest props into props where they belong. Basically, the same way as it's done in the React adapter.

Fixes denoland/fresh#2400

Copy link

vercel bot commented Apr 9, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
tabler-icons ✅ Ready (Inspect) Visit Preview Apr 9, 2024 10:08am

Copy link

This PR is stale because it has been open 45 days with no activity. Remove stale label or comment or this will be closed in 5 days.

@github-actions github-actions bot added the stale Lack of activity label May 10, 2024
@marvinhagemeister
Copy link
Contributor Author

bump

@github-actions github-actions bot removed the stale Lack of activity label May 10, 2024
@codecalm codecalm merged commit fce43e1 into tabler:main May 15, 2024
2 checks passed
@codecalm
Copy link
Member

thank you for help! 🙂

@marvinhagemeister marvinhagemeister deleted the fix-preact-props branch May 16, 2024 06:17
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.

@tabler/icons-preact error on islands component and dev mode
2 participants