-
Notifications
You must be signed in to change notification settings - Fork 3k
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
[$250] Hybrid - Android -Chat - Keyboard blocks composer after leaving it open and selecting another user for DM #55159
Comments
Triggered auto assignment to @kadiealexander ( |
iOS <> Android bug swap. |
@IuliiaHerets the steps are incomplete, they should be: Precondition: have something typed (but not sent) to someone else in ND
|
Job added to Upwork: https://www.upwork.com/jobs/~021878988628495834641 |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @getusha ( |
ProposalPlease re-state the problem that we are trying to solve in this issue.Hybrid - Android -Chat - Keyboard blocks composer after leaving it open and selecting another user for DM What is the root cause of that problem?After step 5, the search modal is closed first:
At this point, the keyboard will reopen if it was already active before step 4. Then, it navigates to another report: App/src/components/Search/SearchRouter/SearchRouter.tsx Lines 249 to 253 in 7b8bb55
Here, since the keyboard remains visible from the previous report screen, it continues to be displayed on the new screen. And because the condition to use the keyboard avoiding view: App/src/pages/home/ReportScreen.tsx Line 760 in 7b8bb55
is What changes do you think we should make in order to solve the problem?Keyboard should not be opened when navigating to a new report until we click on the composer. So, we can update this one: KeyboardUtils.dismiss().then(() => {
if (item?.reportID) {
Navigation.navigate(ROUTES.REPORT_WITH_ID.getRoute(item?.reportID));
} else if ('login' in item) {
ReportUserActions.navigateToAndOpenReport(item.login ? [item.login] : [], false);
}
}); It can make sure the keyboard is closed successfully before navigating to new report. What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?What alternative solutions did you explore? (Optional) |
ProposalPlease re-state the problem that we are trying to solve in this issue.Keyboard overlaps the composer when starting a new thread with keyboard open What is the root cause of that problem?This issue occurs because App/src/pages/home/ReportScreen.tsx Line 750 in ee611e6
Here is the log: #55136 is related this issue What changes do you think we should make in order to solve the problem?To fix this issue in all cases, I think import const {keyboardHeight} = useKeyboardState(); App/src/pages/home/ReportScreen.tsx Line 750 in ee611e6
Update condition to enable shouldEnableKeyboardAvoidingView={((isTopMostReportId || isInNarrowPaneModal) && (!isComposerFocus || showSoftInputOnFocus)) || !!keyboardHeight} What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?This is a UI bug; no UI test is needed. What alternative solutions did you explore? (Optional)Reminder: Please use plain English, be brief and avoid jargon. Feel free to use images, charts or pseudo-code if necessary. Do not post large multi-line diffs or write walls of text. Do not create PRs unless you have been hired for this job. |
If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!
Version Number: v9.0.84-1
Reproducible in staging?: Yes
Reproducible in production?: Yes
If this was caught on HybridApp, is this reproducible on New Expensify Standalone?: No, reproducible on hybrid only
Email or phone of affected tester (no customers): luongquocvu92@gmail.com
Issue reported by: Applause Internal Team
Device used: Pixel 7 Pro /Android 15
App Component: Other
Action Performed:
Precondition: have something typed (but not sent) to someone else in ND
Expected Result:
The keyboard should not block the composer and should focus on the composer to allow text entry.
Actual Result:
The keyboard blocks the composer after entering text, leaving the keyboard open, and selecting another user to DM from the recent list
Workaround:
Unknown
Platforms:
Screenshots/Videos
Bug6712789_1736740810015.Block.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @getushaThe text was updated successfully, but these errors were encountered: