-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Composer - Keyboard overlaps the composer after selecting emoji #68099
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
Conversation
|
Hi @kirillzyusko, I'm doing the issue where the keyboard overlaps the composer and I see you had the PR to fix the quite same issue using |
|
@nkdengineer I'm afraid you will have to write similar code to the one that is used in Let me know if you find a way how to make it simpler! |
|
@kirillzyusko Actually I tried, but the result was worse than without using it because I don't really understand this complex logic. Can you help me to understand the idea? I think the the animation (showing keyboard) interrupt the scroll behavior, so I just use some delay then it works well. @getusha what do you think? |
The idea is to shift content via The idea is simple, but implementation is complex, it's truth. |
|
@getusha |
|
@getusha can you please review this PR? |
|
@getusha bump |
|
@getusha kindly bump again |
|
@getusha bump |
|
@getusha Can you review this PR? |
|
Fell through the cracks. reviewing right now. can you fix lint? thanks |
| const scrollToIndex = useCallback( | ||
| (index: number, isEditing?: boolean, viewPosition?: number, shouldDelay = false) => { | ||
| if (shouldDelay) { | ||
| setTimeout(() => { |
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.
Comment about this? and lets use the const value if we can use CONST.ANIMATED_TRANSITION
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppN/a - there is ongoing issue on autofocus of the edit composer on android Android: mWeb Chromeandroid-rec-47.webmiOS: HybridAppSimulator.Screen.Recording.-.iPhone.15.Pro.-.2025-09-04.at.15.09.34.mp4iOS: mWeb SafariN/a MacOS: Chrome / SafariN/a MacOS: DesktopN/a |
|
It doesn't scroll to the input when focused on mWeb Simulator.Screen.Recording.-.iPhone.15.Pro.-.2025-09-04.at.17.09.53.mp4 |
|
will take a look today |
|
@getusha After spending a lot of time to investigate this issue, I find out that: it has the different RCA from the original one.
App/src/pages/home/report/ReportActionCompose/ComposerWithSuggestions/ComposerWithSuggestions.tsx Lines 804 to 807 in a24b0c0
I don't know what the exact RCA is, so I think we should handle it in other issue. What about you? |
@nkdengineer btw i am trying to focus the edit composer in the video. |
|
Weird, it worked on my side before. Not sure what happens, will check today |
|
@getusha I believe it's different issue/RCA. We can reproduce it on staging with main composer (only happen on mweb safari, not ios native). I don't know why the list scroll to bottom then scroll to top. Do you have any idea? Screen.Recording.2025-09-15.at.09.58.47.mov |
|
@getusha kindly bump |
|
@getusha what do you think about my comment above? |
|
@getusha Can you please take a look at this PR? |
I confirmed that this only happens on Safari not other browsers, which makes it trivial. Could you fix conflicts? |
|
Also issue is marked reproducible on android and the edit composer doesn't get focused. I am wondering if it has similar root cause. android-rec-49.webm |
|
@nkdengineer could you fix the conflict? |
|
@getusha Done |
|
@getusha can you please review this PR asap? |
|
DM-ed to @getusha |
|
Sorry, thought i had approved it. Lets fix conflicts @nkdengineer |
|
@getusha Merged main |
|
@getusha kindly bump |
|
Conflicts @nkdengineer |
|
@getusha Updated. |
|
@nkdengineer lint is failing 🙏 |
|
|
|
@getusha My proposal doesn't work anymore. I can't find another approach, please open this for contributor. |
Explanation of Change
Fixed Issues
$ #67022
PROPOSAL: #67022 (comment)
Tests
Offline tests
Same as tests
QA Steps
Same as tests
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
Screen.Recording.2025-08-07.at.16.26.46.mov
Android: mWeb Chrome
Screen.Recording.2025-08-07.at.16.33.21.mov
iOS: Native
Screen.Recording.2025-08-07.at.16.26.23.mov
iOS: mWeb Safari
Screen.Recording.2025-08-07.at.16.32.03.mov
MacOS: Chrome / Safari
Screen.Recording.2025-08-07.at.15.03.41.mov
MacOS: Desktop
Screen.Recording.2025-08-07.at.16.39.02.mov