-
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
fix(dropdown): broken forwardRef binding #7270
fix(dropdown): broken forwardRef binding #7270
Conversation
Deploy preview for carbon-elements ready! Built with commit f9099a1 |
Is there a reason why the ref is bound to the button? I guess the dropdown (container) itself would be a better candidate. |
Deploy preview for carbon-components-react ready! Built without sensitive environment variables with commit f9099a1 https://deploy-preview-7270--carbon-components-react.netlify.app |
For the Since the |
How should this approach this? Options I see:
|
Great question @ConradSchmidt! I think you can use the I was trying to dig into that |
@joshblack like this: https://github.com/carbon-design-system/carbon/pull/7270/files#diff-9712440dfce10e10be2619b0921a1ba53e775f5d864aecad652354f4e4d198b1R183? |
I guess I stop the package installation here, maybe @joshblack can take care of this |
Hey @ConradSchmidt! So sorry about the delay, I pushed up some changes that I think reflect what you were going for, let me know if that works! |
I still see a failing CI :( |
@andreancardona should be updated now! |
which version this fix will be go into? or is there any workaround we can do it overcome this issue? |
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 good!
Closes #7269
Put ref prop at the end, so that it is not overwritten by other props.
Changelog
New
Changed
Removed
Testing / Reviewing
e.g. in the story:
{current: null}
current: button#downshift-5-toggle-button.bx--list-box__field}