Skip to content

Fix forwarded ref in Picker #1407

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

Merged
merged 2 commits into from
Jul 15, 2021
Merged

Fix forwarded ref in Picker #1407

merged 2 commits into from
Jul 15, 2021

Conversation

ethanshar
Copy link
Collaborator

Description

We didn't forward the ref in the picker component but did wrap It with forwardRef HOC which resulted in a null ref.
This fix issue #1274

Changelog

Fix issue with Picker component ref not being forwarded

@ethanshar ethanshar requested a review from Inbal-Tish July 15, 2021 07:55
@ethanshar ethanshar linked an issue Jul 15, 2021 that may be closed by this pull request
@Inbal-Tish Inbal-Tish merged commit 2d74d81 into master Jul 15, 2021
@riamon-v
Copy link

Well, I would love to see an example of how you actually go the reference of the Picker because after trying a hundred solution I still get null or undefined

@riamon-v
Copy link

Well, I would love to see an example of how you actually go the reference of the Picker because after trying a hundred solution I still get null or undefined

Wellmy issue is that I was using the native picker component, the ref is not forwarded to it

@ethanshar ethanshar deleted the fix/PickerRef branch April 18, 2022 09:01
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.

Ref is not forwarding to Picker
3 participants