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

Support passing refs to AspectRatio #80

Merged

Conversation

chrissantamaria
Copy link
Contributor

The types from #78 suggest that passing refs to AspectRatio is supported just like a native div, but this currently results in a dev warning that the ref isn't being passed to the underlying functional component.

This PR updates AspectRatio to use forwardRef to support this behavior.

@roderickhsiao roderickhsiao self-requested a review April 4, 2023 19:29
@roderickhsiao roderickhsiao merged commit 8c82567 into roderickhsiao:main Apr 4, 2023
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