fix "Android - Keyboard doesn't open automatically while verifying contact method#22164
Conversation
|
@allroundexperts 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/VideosWebScreen.Recording.2023-07-05.at.10.40.21.AM.movMobile Web - ChromeScreen.Recording.2023-07-05.at.10.42.40.AM.movMobile Web - SafariScreen.Recording.2023-07-05.at.11.02.17.AM.movDesktopScreen.Recording.2023-07-05.at.11.06.00.AM.moviOSScreen.Recording.2023-07-05.at.10.39.44.AM.movAndroidScreen.Recording.2023-07-05.at.10.38.49.AM.mov |
|
@situchan The following case does not seem to work: |
| // We only want this to run on mount | ||
| // eslint-disable-next-line react-hooks/exhaustive-deps | ||
| }, []); |
There was a problem hiding this comment.
What happens if we keep those props?
There was a problem hiding this comment.
This is aligned with BaseTextInput.
No issue with original dependencies but no need, as auto-focus should happen only on component mount.
There was a problem hiding this comment.
Sounds good. Can you also upload screen recordings of the magic code input on the login page working as expected?
There was a problem hiding this comment.
Done.
Note: mSafari login magic code auto-focus doesn't work on main
There was a problem hiding this comment.
@situchan It's working on Staging.
Screen.Recording.2023-07-05.at.3.08.34.PM.mov
There was a problem hiding this comment.
Not working for me. Tested on iOS 16.4. Might depend on iOS version.
Screen.Recording.2023-07-05.at.11.20.17.AM.mov
It would be great if you can test this branch on your simulator.
As shouldDelayFocus is not passed to MagicCodeInput on sign in page, it should not be affected by this PR.
There was a problem hiding this comment.
I guess it has do with the iOS version. Just tested locally and it works!
There was a problem hiding this comment.
I don't see any other pages which auto-focus and show keyboard after reload on mChrome. |
…/21415-verify-contact-method-autofocus
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
🚀 Deployed to staging by https://github.com/techievivek in version: 1.3.38-0 🚀
|
|
🚀 Deployed to production by https://github.com/francoisl in version: 1.3.38-7 🚀
|
Details
Fixed Issues
$ #21415
PROPOSAL: #21415 (comment)
Tests
Same as QA step
Offline tests
Same as QA step
QA Steps
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)myBool && <MyComponent />.src/languages/*files and using the translation methodWaiting for Copylabel for a copy review on the original GH to get the correct copy.STYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)/** comment above it */thisproperly so there are no scoping issues (i.e. foronClick={this.submit}the methodthis.submitshould be bound tothisin the constructor)thisare necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);ifthis.submitis never passed to a component event handler likeonClick)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG)Avataris modified, I verified thatAvataris working as expected in all cases)ScrollViewcomponent to make it scrollable when more elements are added to the page.mainbranch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTeststeps.Screenshots/Videos
Web
web.mov
login:
web.mov
Mobile Web - Chrome
mchrome.mov
login:
mchrome.mov
Mobile Web - Safari
msafari.mov
login:
msafari.mov
Desktop
desktop.mov
iOS
ios.mov
login:
ios.mov
Android
android.mov
login:
android.mov