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

Forward the ref to all components #1116

Merged
merged 3 commits into from
Feb 24, 2022
Merged

Forward the ref to all components #1116

merged 3 commits into from
Feb 24, 2022

Conversation

RobinMalfait
Copy link
Member

@RobinMalfait RobinMalfait commented Feb 18, 2022

This PR will ensure that you can add the ref prop to all the components we expose.

Fixes: #273
Fixes: #664

@vercel
Copy link

vercel bot commented Feb 18, 2022

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployments, click below or on the icon next to each commit.

headlessui-vue – ./packages/playground-vue

🔍 Inspect: https://vercel.com/tailwindlabs/headlessui-vue/29k73RrPAgcat4HJhmp2ioEMUCgK
✅ Preview: https://headlessui-vue-git-ref-all-the-components-tailwindlabs.vercel.app

headlessui-react – ./packages/playground-react

🔍 Inspect: https://vercel.com/tailwindlabs/headlessui-react/824GpohhfxGMXqJFngmF57Z84RDe
✅ Preview: https://headlessui-react-git-ref-all-the-components-tailwindlabs.vercel.app

This isn't a perfect fix of course. But the TypeScript changes required
to do it properly are a bit bigger and require more work.

Having this ready is a good step forward.
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.

[Bug]: <Popover> component does not use forwardRef Can't get access to ref on Transition.Child or Transition
1 participant