-
Notifications
You must be signed in to change notification settings - Fork 3k
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 message highlight stuck when open the 2nd context menu #47993
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 |
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.
Tests well!
✋ 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 Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)myBool && <MyComponent />
.src/languages/*
files and using the translation methodSTYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)Design
label and/or tagged@Expensify/design
so the design team can review the changes.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
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