-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
feat(ComboBox): add ability to forward ref #9136
Conversation
✔️ Deploy Preview for carbon-react-next ready! 🔨 Explore the source changes: d379845 🔍 Inspect the deploy log: https://app.netlify.com/sites/carbon-react-next/deploys/60e732ae57c8f6000858ef4c 😎 Browse the preview: https://deploy-preview-9136--carbon-react-next.netlify.app |
✔️ Deploy Preview for carbon-elements ready! 🔨 Explore the source changes: d379845 🔍 Inspect the deploy log: https://app.netlify.com/sites/carbon-elements/deploys/60e732ae8f664d0007bb00b3 😎 Browse the preview: https://deploy-preview-9136--carbon-elements.netlify.app |
✔️ Deploy Preview for carbon-components-react ready! 🔨 Explore the source changes: d379845 🔍 Inspect the deploy log: https://app.netlify.com/sites/carbon-components-react/deploys/60e732ae02df0a000753b63b 😎 Browse the preview: https://deploy-preview-9136--carbon-components-react.netlify.app |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great! Just left a small comment
Co-authored-by: Josh Black <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍 ✅
Closes #8744
This PR updates the
ComboBox
component to useforwardRef
since it's now a functional component, so that it can pass down any ref passed to it.Changelog
Changed
forwardRef
Testing / Reviewing
In the
ComboBox
default story, you should now be able to see the ref being logged in the console and no warning. All tests should pass.