-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Make sure withLocalize forwards its ref #2800
Conversation
src/components/withLocalize.js
Outdated
@@ -59,9 +60,11 @@ function withLocalizeHOC(WrappedComponent) { | |||
WithLocalize.displayName = `WithLocalize(${getComponentDisplayName(WrappedComponent)})`; | |||
WithLocalize.propTypes = { | |||
preferredLocale: PropTypes.string, | |||
forwardedRef: PropTypes.func, |
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.
This is not necessarily going to be a func
.
e.g.
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, thanks!
🚀 Deployed to staging in version: 1.0.42-1🚀
|
🚀 Deployed to production in version: 1.0.44-0🚀
|
@tgolen please review
cc @HorusGoul @marcaaron @Julesssss
Details
Make withLocalize forward its ref. Remove a hack from #2320 that was getting around the fact that this wasn't happening.
Fixed Issues
Fixes #2786
Fixes #2785
Tests/QA Steps
Tested On
Screenshots
Web
Mobile Web
Desktop
iOS
Android