Fix/70912 - Edit composer isn't automatically focused#71637
Conversation
|
@brunovjk Please check this PR has an issue with latest main. |
What do you mean with |
|
@dmkt9 the main composer sometimes doesn't return to focus after editing, do you think we can fix this here? Another thing, to understand, why are you checking only Screen.Recording.2025-10-01.at.21.24.14.movScreen.Recording.2025-10-01.at.21.22.25.mov |
Hi @brunovjk, I think it's possible, but the root cause seems to be different. If we want to fix it, I think we can apply a similar approach as this one when |
I noticed that onDismiss works correctly on iOS. Also, on iOS, when 'Add attachment' is clicked, |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #71637 +/- ##
==========================================
- Coverage 35.17% 35.14% -0.04%
==========================================
Files 3290 3291 +1
Lines 107852 107964 +112
Branches 34421 34474 +53
==========================================
- Hits 37942 37939 -3
- Misses 69725 69838 +113
- Partials 185 187 +2 📢 Thoughts on this report? Let us know! 🚀 New features to boost your workflow:
|
Sorry @dmkt9, I didn't quite understand. I tested it and the issue is reproducible on Android, right? Note: The bug with the attachment iOS is also reproducible in the latest main: Android: HybridApp - mainandrod_native_main.moviOS: HybridApp - mainios_native_main.movI tested it and our PR seems to work fine. Android: HybridApp - our PRandrod_native_PR.moviOS: HybridApp - our PRios_native_PR.movI need to test more to make sure there aren't any other regressions. Thank you very much. |
Reviewer Checklist
Screenshots/VideosAndroid: HybridApp71637_android_native.movAndroid: mWeb Chrome71637_androidweb.moviOS: HybridApp71637_ios_native.moviOS: mWeb Safari71637_ios_web.movMacOS: Chrome / Safari71637_web_chrome.movMacOS: Desktop71637_web_desktop.mov |
brunovjk
left a comment
There was a problem hiding this comment.
LGTM. On some platforms, after returning from editing, the main composer no longer becomes focused, even if it was focused before. This bug was neither introduced nor fixed by this PR.
MacOS: Desktop Lastest main
71637_web_desktop_main.mov
|
✋ 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/Beamanator in version: 9.2.29-0 🚀
|
|
🚀 Deployed to production by https://github.com/mountiny in version: 9.2.29-5 🚀
|
| if (getPlatform() === CONST.PLATFORM.ANDROID) { | ||
| // Therefore, we manually call onDismiss and onModalHide here. | ||
| if (getPlatform() !== CONST.PLATFORM.IOS) { | ||
| onDismiss?.(); |
There was a problem hiding this comment.
This change caused regression on web.
More details: #72648 (comment)
Explanation of Change
Fixed Issues
$ #70912
PROPOSAL: #70912 (comment)
Tests
Same as QA Steps
Offline tests
Same as QA Steps
QA Steps
Test 1:
Test 2:
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
Test 1:
Android: Native
android.native.mp4
Android: mWeb Chrome
android.mweb.mp4
iOS: Native
ios.native.mp4
iOS: mWeb Safari
ios.mweb.mp4
MacOS: Chrome / Safari
mac.safari.mp4
MacOS: Desktop
mac.desktop.mp4
Test 2:
ios.native.test.mp4