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

Make sure withLocalize forwards its ref #2800

Merged
merged 4 commits into from
May 12, 2021
Merged

Conversation

yuwenmemon
Copy link
Contributor

@yuwenmemon yuwenmemon commented May 11, 2021

@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

  1. Open the app
  2. Open up the emoji picker
  3. Make sure you see no errors in the JS console.

Tested On

  • Web
  • Mobile Web
  • Desktop
  • iOS
  • Android

Screenshots

Web

Kapture 2021-05-11 at 11 19 32

Mobile Web

Desktop

iOS

Android

@yuwenmemon yuwenmemon requested a review from tgolen May 11, 2021 18:20
@yuwenmemon yuwenmemon requested a review from a team as a code owner May 11, 2021 18:20
@MelvinBot MelvinBot requested review from jasperhuangg and removed request for a team May 11, 2021 18:20
@@ -59,9 +60,11 @@ function withLocalizeHOC(WrappedComponent) {
WithLocalize.displayName = `WithLocalize(${getComponentDisplayName(WrappedComponent)})`;
WithLocalize.propTypes = {
preferredLocale: PropTypes.string,
forwardedRef: PropTypes.func,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tgolen
tgolen previously approved these changes May 11, 2021
marcaaron
marcaaron previously approved these changes May 11, 2021
Copy link
Contributor

@jasperhuangg jasperhuangg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great, thanks!

@jasperhuangg jasperhuangg merged commit 98fe756 into main May 12, 2021
@jasperhuangg jasperhuangg deleted the yuwen-forwardedRef branch May 12, 2021 04:08
@OSBotify
Copy link
Contributor

🚀 Deployed to staging in version: 1.0.42-1🚀

platform result
🤖 android 🤖 success ✅
🖥 desktop 🖥 success ✅
🍎 iOS 🍎 success ✅
🕸 web 🕸 success ✅

@OSBotify
Copy link
Contributor

🚀 Deployed to production in version: 1.0.44-0🚀

platform result
🤖 android 🤖 failure ❌
🖥 desktop 🖥 success ✅
🍎 iOS 🍎 success ✅
🕸 web 🕸 success ✅

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
5 participants