Fix keyboard doesn't show when magic code page is shown#51453
Fix keyboard doesn't show when magic code page is shown#51453cead22 merged 4 commits intoExpensify:mainfrom
Conversation
| } else { | ||
| inputValidateCodeRef.current?.focusLastSelected(); | ||
| }, CONST.ANIMATED_TRANSITION); | ||
| } |
There was a problem hiding this comment.
Mobile safari can't auto focus with delay, otherwise the keyboard won't show.
ref: #10414
There was a problem hiding this comment.
Thanks for this comment. Can you put it as a code comment in the code?
Reviewer Checklist
Screenshots/VideosAndroid: Native01_Android_Native.mp4Android: mWeb Chrome02_Android_Chrome.mp4iOS: Native03_iOS_Native.mp4iOS: mWeb Safari04_iOS_Safari.mp4MacOS: Chrome / SafariN/A MacOS: DesktopN/A |
| } else { | ||
| inputValidateCodeRef.current?.focusLastSelected(); | ||
| }, CONST.ANIMATED_TRANSITION); | ||
| } |
There was a problem hiding this comment.
Thanks for this comment. Can you put it as a code comment in the code?
|
Everything else looks good |
|
@cead22 hi, can we merge this? (sorry, I just realized I forgot to tag you when I added the comment) |
|
Oh yes, thanks for the bump! |
|
✋ 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/cead22 in version: 9.0.62-0 🚀
|
|
🚀 Deployed to production by https://github.com/mountiny in version: 9.0.62-4 🚀
|
Details
The keyboard, specifically in Android, doesn't show when we open the magic code page/modal.
Fixed Issues
$ #51279
PROPOSAL: #51279 (comment)
Tests
Same as QA Steps
Offline tests
Same as QA Steps
QA Steps
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)myBool && <MyComponent />.src/languages/*files and using the translation methodSTYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))Avataris modified, I verified thatAvataris working as expected in all cases)Designlabel and/or tagged@Expensify/designso the design team can review the changes.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
Android: Native
android.mp4
Android: mWeb Chrome
android.mweb.mp4
iOS: Native
ios.mp4
iOS: mWeb Safari
ios.mweb.mp4
MacOS: Chrome / Safari
web.mp4
MacOS: Desktop
desktop.mp4