Fix message highlight stuck when open the 2nd context menu#47993
Conversation
…6-fix/45524-message-highlight-is-stukck"
|
@hungvu193 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] |
|
Oh I can now reproduce, try to open and close keyboard and long press on a expense @bernhardoj Screen.Recording.2024-08-27.at.15.02.53.mov |
|
Ah, finally I can reproduce it. No need to open and close the keyboard. The context menu won't show on a component that has a long press to trigger the context menu, another example is image. App/src/components/HTMLEngineProvider/HTMLRenderers/ImageRenderer.tsx Lines 98 to 100 in d5cfecf In mWeb, long pressing the Image will trigger App/src/pages/home/report/ReportActionItem.tsx Lines 347 to 365 in d5cfecf The first call sets the instance ID but the modal isn't show yet and the 2nd call try to hide it, but because it's never shown, the hide callback isn't called. App/src/pages/home/report/ContextMenu/ReportActionContextMenu.ts Lines 128 to 133 in d5cfecf I fixed it by make sure the |
|
I think I still can reproduce after a few long press: Screen.Recording.2024-08-27.at.16.32.00.mov |
|
Pushed a new fix. Please check again. |
|
Nice! it's working |
Reviewer Checklist
Screenshots/VideosAndroid: NativeScreen.Recording.2024-08-16.at.13.36.07.movAndroid: mWeb ChromeScreen.Recording.2024-08-27.at.17.36.40.movScreen.Recording.2024-08-16.at.13.32.54.moviOS: NativeScreen.Recording.2024-08-16.at.13.06.17.moviOS: mWeb SafariScreen.Recording.2024-08-16.at.13.23.35.movMacOS: Chrome / SafariChrome.movMacOS: DesktopScreen.Recording.2024-08-16.at.10.53.00.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/roryabraham in version: 9.0.26-1 🚀
|
|
🚀 Deployed to production by https://github.com/puneetlath in version: 9.0.26-6 🚀
|
Details
When we open the 2nd context menu while the 1st one is shown, the highlight becomes stuck.
Fixed Issues
$ #45524
PROPOSAL: #45524 (comment)
Tests
Same as QA Steps
Offline tests
Same as QA Steps
QA Steps
Web/Desktop
Android/iOS/mWeb
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)myBool && <MyComponent />.src/languages/*files and using the translation methodSTYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))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.mp4
Android: mWeb Chrome
android.mweb.mp4
iOS: Native
ios.mp4
iOS: mWeb Safari
ios.mweb.mp4
MacOS: Chrome / Safari
web.mp4
MacOS: Desktop
desktop.mp4