-
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: 10731 Focus composer without showing keyboard when users go to chats #32711
fix: 10731 Focus composer without showing keyboard when users go to chats #32711
Conversation
@Santhosh-Sellavel 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] |
I am not sure if this is the expected behavior. @ntdiary can you confirm this doesn't conflict with your refactor? |
|
I need some time to understand this issue first. :) |
@ntdiary @0xmiroslav bump
|
@Santhosh-Sellavel, we have a PR #29199 that aims to standardize the behavior of refocusing when a modal is closed (including So, after it is merged, the main input box will no longer gain focus if we complete the money request from the green plus button, which means that the keyboard will no longer be pulled up (for all mobile native/mWeb platforms). As for whether the main composer should be focused when we open a chat from LHN, it is beyond the scope of that PR. demo.mp4 |
@christianwen can you resolve conflicts, please? |
merged main |
@christianwen Sorry for the delay, can resolve conflicts please? |
@Santhosh-Sellavel I fixed the conflicts, can you help process review this PR to avoid the conflicts? Thanks |
@christianwen Screen.Recording.2024-01-26.at.1.04.52.AM.mov |
Checking... |
Any update? |
Bump @christianwen |
I faced with some errors when building iOS.Pls give me a day to fix it |
@christianwen this happens on mWeb iOS |
Any update @christianwen |
BUG: The keyboard doesn't show on Android (only show if clicking two times) Screen.Recording.2024-09-25.at.17.44.01.mov |
Reviewer Checklist
Screenshots/VideosAndroid: NativeScreen.Recording.2024-09-25.at.23.11.55.movAndroid: mWeb ChromeScreen.Recording.2024-09-25.at.23.10.40.moviOS: NativeScreen.Recording.2024-09-25.at.23.12.23.moviOS: mWeb SafariScreen.Recording.2024-09-25.at.23.10.15.movMacOS: Chrome / SafariScreen.Recording.2024-09-25.at.23.09.27.movMacOS: DesktopScreen.Recording.2024-09-25.at.23.12.43.mov |
Just a note:
This PR will change the current behavior on purpose |
@iwiznia All yours |
@iwiznia Can you take a look at this PR? Thanks |
Checks failed |
@iwiznia Please check this comment: #32711 (comment) |
@iwiznia looks like this was merged without a test passing. Please add a note explaining why this was done and remove the |
See #32711 (comment) |
✋ 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/iwiznia in version: 9.0.42-0 🚀
|
Going to revert the PR since it caused #49977 |
@christianwen Could you create a quick PR to address this bug? |
🚀 Deployed to production by https://github.com/jasperhuangg in version: 9.0.42-3 🚀
|
!modal?.isVisible && | ||
Modal.areAllModalsHidden() && | ||
isFocused && | ||
(shouldFocusInputOnScreenFocus || (isEmptyChat && !ReportActionsUtils.isTransactionThread(parentReportAction))) && |
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.
Probably a design issue as we did not notice that the keyboard display on mobile platforms would cover the task description and cause UX issue #50346
Sorry. Wrong place to comment this
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.
@rojiphil This PR was reverted
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.
Oh! Thanks for pointing this out. Didn't notice this. Let me dig a little deeper.
Details
Fixed Issues
$ #10731
PROPOSAL: #10731 (comment)
Tests
Offline tests
Same as above
QA Steps
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)myBool && <MyComponent />
.src/languages/*
files and using the translation methodWaiting for Copy
label for a copy review on the original GH to get the correct copy.STYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)/** comment above it */
this
are necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);
ifthis.submit
is never passed to a component event handler likeonClick
)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)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
e-android.native.mov
Android: mWeb Chrome
e-android.mweb.mov
iOS: Native
e-ios.mov
iOS: mWeb Safari
e-safari.mov
MacOS: Chrome / Safari
e-web.mov
MacOS: Desktop
e-desktop.mov