-
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 #47486
Fix message highlight stuck when open the 2nd context menu #47486
Conversation
@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] |
Note: the highlight will stuck on mWeb because of the strict mode. Happening on |
// If there is an already open context menu, close it first before opening | ||
// a new one. | ||
if (contextMenuRef.current.instanceID) { | ||
hideContextMenu(); | ||
contextMenuRef.current.runAndResetOnPopoverHide(); | ||
hideContextMenu(undefined, show); |
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.
I know shouldDelay
is optional, but it's boolean so let use false
instead.
hideContextMenu(undefined, show); | |
hideContextMenu(false, show); |
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.
Updated
Reviewer Checklist
Screenshots/VideosAndroid: NativeScreen.Recording.2024-08-16.at.13.36.07.movAndroid: mWeb ChromeScreen.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.22-0 🚀
|
🚀 Deployed to staging by https://github.com/roryabraham in version: 9.0.22-1 🚀
|
FYI we reverted this PR since it caused this issue. Please take it into consideration when working on the fix again. |
🚀 Deployed to production by https://github.com/chiragsalian in version: 9.0.22-9 🚀
|
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