Repository navigation
Fix that up arrow does not move keyboard focus to the composer - #79359
marcochavezf merged 4 commits into
Conversation
|
@aimane-chnaif 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] |
| ref.current = el; | ||
| } | ||
| }} | ||
| autoFocus |
There was a problem hiding this comment.
Is this change safe? Need to test various cases. I'm afraid there might be edge case of edit composer being focused where main composer should be focused.
There was a problem hiding this comment.
I think so, I didn't find any edge cases 😄
There was a problem hiding this comment.
Can we limit this to web desktop only?
Bug: Auto focus happens on mobile
Screen.Recording.2026-01-13.at.1.28.51.pm.mov
joekaufmanexpensify
left a comment
There was a problem hiding this comment.
Good from a product perspective 👍
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppAndroid: mWeb ChromeiOS: HybridAppiOS: mWeb SafariMacOS: Chrome / SafariScreen.Recording.2026-01-19.at.12.25.07.pm.mov |
|
Bug: cannot focus on main composer after refresh on web Screen.Recording.2026-01-13.at.1.31.47.pm.mov |
|
FYI I'm working on it but it's a bigger rewrite of focus composer management. Turns out after we integrated chat into side panel some things worked out because of luck and some cases we missed in the process. I noticed how complicated and scattered the logic is so I'm going to combine everything and try to make it simpler for everyone. Be patient @aimane-chnaif |
|
@blazejkustra The root cause seems exist in production so let's not block on that bug. We can fix in a separate issue. Screen.Recording.2026-01-16.at.3.55.51.pm.mov |
This comment was marked as resolved.
This comment was marked as resolved.
|
I created issue with minimum repro step in production. |
…-with-side-panel-open
… Expensify icons and remove unused imports. Auto focus only on wide screens
Codecov Report✅ Changes either increased or maintained existing code coverage, great job!
|
Note for QA team:Cannot focus on other composers while edit composer is visible Screen.Recording.2026-01-19.at.12.27.54.pm.movWe're aware of this bug and reported here - #79769 |
|
✋ 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/marcochavezf in version: 9.3.6-0 🚀
|
|
🚀 Deployed to production by https://github.com/Beamanator in version: 9.3.6-4 🚀
|
Explanation of Change
Side Panel changed focus handling, which prevented automatic focus of edit message input. The fix turned out to be very simple :)
Fixed Issues
$ #78475
PROPOSAL: N/A
Tests
Offline tests
N/A
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
Android: mWeb Chrome
WebM.Media.webm
iOS: Native
Simulator.Screen.Recording.-.iPhone.15.Plus.-.2026-01-12.at.16.26.31.mov
iOS: mWeb Safari
Simulator.Screen.Recording.-.iPhone.15.Plus.-.2026-01-12.at.16.32.40.mov
MacOS: Chrome / Safari
QuickTime.movie.mov