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

Wrap icons with a forwardRef #92

Merged
merged 1 commit into from
Jul 17, 2024
Merged

Wrap icons with a forwardRef #92

merged 1 commit into from
Jul 17, 2024

Conversation

sandhose
Copy link
Member

@robintown I saw in element-hq/compound-web#208 that you tried to forward references to the icons, but we didn't forwardRef when rendering them.

This wraps all the icons with a forwardRef. The most annoying part of this is the typing, because forwardRef has a pretty exotic type signature.

Copy link
Member

@robintown robintown left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, I blindly trusted the types 😅

@sandhose sandhose merged commit 87aae09 into main Jul 17, 2024
3 checks passed
@sandhose sandhose deleted the quenting/icons-forward-ref branch July 17, 2024 06:51
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.

2 participants