-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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 android input focus in the search router component #51064
Fix android input focus in the search router component #51064
Conversation
@jayeshmangwani Please copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button] |
Reviewer Checklist
Screenshots/VideosAndroid: NativeAndroid.mp4Android.movAndroid: mWeb Chromemweb-chrome.mp4mweb-chrome.moviOS: NativeiOS.movios.moviOS: mWeb Safarimweb-safari.movmweb-safari.movMacOS: Chrome / Safariweb.movMacOS: Desktopdesktop.mov |
@luacmartins @srikarparsi Keyboard isn't opening in iOS mobile Safari, and I think that's a known issue since it's not working in many places at the moment. Otherwise, the changes look good, and other platforms are working well. |
hmm the current staging build seems to open the keyboard on my physical device |
perf tests are failing 😞 |
…search-router-input
is this happening on specific ios versions or devices? for me its also opening as shown in the attached screenshot |
iphone SE(3rd gen) , 17.5 version |
Let me test it on a few other simulators |
Just tested on ios-safari with iphone SE(3rd gen) - 17.5 and its behaving as expected 🤔 Screen.Recording.2024-10-18.at.00.32.47.mov |
Tested with two simulators, and I'm seeing the same issue on my side—the keyboard hides. However, when I use the main branch, the keyboard opens. It looks like we're breaking mobile Safari with these changes. |
Strange simulator behavior. Should we test with an ad-hoc build here @luacmartins ? |
Yeah I can trigger an ad-hoc build, but if it's working on main but not the branch for the same simulator might be a code problem - but it is working in @abzokhattab's screenshot which is weird. |
Running adhoc build here. Let's test it as soon as the web build is done so we don't wait for iOS/android? |
Yes 👍 |
@luacmartins @abzokhattab @srikarparsi Tested with the physical device and keyboard doesn't open for mweb safari 😞 |
Going back to this point, do you know if there is an issue that covers this bug in MWeb/Safari? it would be useful if we can get more context |
PR and staging comparison RPReplay_Final1729205398.mov |
This comment has been minimized.
This comment has been minimized.
I am able to reproduce it now on the physical device... also the same issue occurs with the new chat input ... we might have some other components that have the same issue WhatsApp.Video.2024-10-18.at.1.11.06.AM.mp4 |
More context: necolas/react-native-web#2175 (comment)
seems like the timeout causes the keyboard not to open up on ios/safari. since ios safari is already working on staging, should i change my implementation to use what do you think about this plan? |
What if we remove |
I agree Optionally for the future we can fix it globally by changing this condition to App/src/components/TextInput/BaseTextInput/index.tsx Lines 114 to 117 in 38c5b3b
But for now i will fix the current issue |
Sounds like a good plan. We can start the Slack discussion about it, but for now, let's focus on this issue 😄 |
Done i have done another round of testing and all devices are working as expected. Can you please check the mweb/safari sepecifcally from your side |
Also started another adhoc build in case we need it |
Tested mweb and its working fine |
test passed using the build on my physical device. |
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.
Cool, this looks good to me, thanks for the changes @abzokhattab and @jayeshmangwani. @luacmartins are you around to take a second look at this, if not we can merge.
🧪🧪 Use the links below to test this adhoc build on Android, iOS, Desktop, and Web. Happy testing! 🧪🧪
|
Going to go ahead and merge so we can clear the deploy blocker |
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
…h-router-input Fix android input focus in the search router component (cherry picked from commit f180cbb) (CP triggered by marcaaron)
🚀 Cherry-picked to staging by https://github.com/marcaaron in version: 9.0.50-7 🚀
@Expensify/applauseleads please QA this PR and check it off on the deploy checklist if it passes. |
1 similar comment
🚀 Cherry-picked to staging by https://github.com/marcaaron in version: 9.0.50-7 🚀
@Expensify/applauseleads please QA this PR and check it off on the deploy checklist if it passes. |
Hm, the iOS build failed on the AdHoc build and both the cherry pick builds. @jayeshmangwani and @abzokhattab were you able to test the latest changes on iOS? |
@srikarparsi I've tested the iOS build locally, and it worked fine. I'm not sure how to test the staging iOS build. |
🚀 Cherry-picked to staging by https://github.com/marcaaron in version: 9.0.50-7 🚀
@Expensify/applauseleads please QA this PR and check it off on the deploy checklist if it passes. |
🚀 Deployed to production by https://github.com/marcaaron in version: 9.0.50-8 🚀
|
Details
Fixed Issues
$ #51010
PROPOSAL: #51010 (comment)
Tests
Offline tests
Same as tests
QA Steps
Same as tests
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)myBool && <MyComponent />
.src/languages/*
files and using the translation methodSTYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)Design
label and/or tagged@Expensify/design
so the design team can review the changes.ScrollView
component to make it scrollable when more elements are added to the page.main
branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTest
steps.Screenshots/Videos
Android: Native
WhatsApp.Video.2024-10-17.at.11.03.31.PM.mp4
Android: mWeb Chrome
WhatsApp.Video.2024-10-17.at.11.03.31.PM.2.mp4
iOS: Native
WhatsApp.Video.2024-10-17.at.11.03.29.PM.mp4
iOS: mWeb Safari
WhatsApp.Video.2024-10-17.at.11.03.31.PM.1.mp4
MacOS: Chrome / Safari
WhatsApp.Video.2024-10-17.at.11.03.31.PM.4.mp4
MacOS: Desktop
WhatsApp.Video.2024-10-17.at.11.03.31.PM.3.mp4