Fix/73175b - Empty space instead of keyboard if backgrounding app while creating expense#76281
Conversation
|
@dominictb 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] |
|
Hey! I see that you made changes to our Form component. Make sure to update the docs in FORMS.md accordingly. Cheers! |
Codecov Report✅ Changes either increased or maintained existing code coverage, great job!
|
trjExpensify
left a comment
There was a problem hiding this comment.
Can you please explain what this PR is doing as a follow-up to the other one linked that has exactly the same title and explanation of changes: #74904
|
🚧 @Julesssss has triggered a test Expensify/App build. You can view the workflow run here. |
|
🧪🧪 Use the links below to test this adhoc build on Android, iOS, and Web. Happy testing! 🧪🧪
|
| ref?: ForwardedRef<BaseTextInputRef>; | ||
|
|
||
| navigation?: Omit<NavigationProp<ReactNavigation.RootParamList>, 'getState'> & { | ||
| getState(): NavigationState | undefined; |
There was a problem hiding this comment.
Why do we need to redefine getState here? Also please add prop JSDoc comment.
There was a problem hiding this comment.
Actually, I didn’t look into why it needs to redefine getState; I just took it from the type of useNavigation 😄:
export function useNavigation<
T = Omit<NavigationProp<ReactNavigation.RootParamList>, 'getState'> & {
getState(): NavigationState | undefined;
},
>(): T {
| } | ||
|
|
||
| if (!navigation) { | ||
| Log.warn('disableKeyboard is enabled, but "navigation" isn\'t passed to the TextInput component!'); |
There was a problem hiding this comment.
Can you check similar places with enabled disableKeyboard where the bug can be reproduced and pass navigation accordingly?
There was a problem hiding this comment.
Yes. I reviewed everything when creating this PR, and I added this log to ensure that nothing gets missed in the future.
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppScreen.Recording.2025-12-08.at.18.35.52-compressed.movAndroid: mWeb ChromeScreen.Recording.2025-12-08.at.18.38.20-compressed.moviOS: HybridAppScreen.Recording.2025-12-08.at.18.26.09.moviOS: mWeb SafariScreen.Recording.2025-12-08.at.18.30.20.movMacOS: Chrome / SafariScreen.Recording.2025-12-04.at.23.18.52.mov |
|
🚀 Deployed to staging by https://github.com/Julesssss in version: 9.2.74-0 🚀
|
|
🚀 Deployed to production by https://github.com/yuwenmemon in version: 9.2.74-12 🚀
|
1 similar comment
|
🚀 Deployed to production by https://github.com/yuwenmemon in version: 9.2.74-12 🚀
|
|
🚀 Deployed to production by https://github.com/yuwenmemon in version: 9.2.74-12 🚀
|
Explanation of Change
Follow-up #74904
While in the request money flow, at the confirm details step, if the user backgrounds the app while an input field like "Merchant" or "Description" is focused and the keyboard is visible, then returns to the foreground, a blank space appears at the bottom of the screen. This space replaces the missing keyboard. This PR fixes the issue.
Fixed Issues
$ #73175
PROPOSAL: #73175 (comment)
Tests
Same as QA Steps
Offline tests
Same as QA Steps
QA Steps
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectioncanBeMissingparam foruseOnyxtoggleReportand notonIconClick)src/languages/*files and using the translation methodSTYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))npm run compress-svg)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.native.mp4
Android: mWeb Chrome
The issue doesn't occur
iOS: Native
ios.native.mp4
iOS: mWeb Safari
The issue doesn't occur
MacOS: Chrome / Safari
The issue doesn't occur
MacOS: Desktop
The issue doesn't occur