-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
[$500] Web - Mini context menu keeps visible after opening Search RHN by Ctrl/CMD + K #27549
Comments
Triggered auto assignment to @jliexpensify ( |
Job added to Upwork: https://www.upwork.com/jobs/~018c0c625b3a053d7e |
Bug0 Triage Checklist (Main S/O)
|
Triggered auto assignment to @anmurali ( |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @mollfpr ( |
Possibly a duplicate of #27244 |
Yep, I think you're right @paultsimura - @mollfpr is also the C+ assigned, so if it isn't a dupe, let me know and I'll re-open this. |
I was wrong, sorry. While working on the other issue, I found out that this one is a completely different root cause. This issue is actually a regression from #15276 |
@paultsimura please explain the root cause in detail. Why is it a regression from #15276? |
ProposalPlease re-state the problem that we are trying to solve in this issue.When opening the search page using cmd+k with the emoji picker open, the mini context menu stays visible. What is the root cause of that problem?The emoji picker context menu action has a special function that manually closes the mini context menu on the picker being closed: App/src/pages/home/report/ContextMenu/ContextMenuActions.js Lines 51 to 60 in 4e75989
However, when navigating, this function is being neglected: App/src/components/EmojiPicker/EmojiPicker.js Lines 72 to 78 in a7c53ed
What changes do you think we should make in order to solve the problem?My suggestion is to remove the const hideEmojiPicker = (isNavigating) => {
- if (isNavigating) {
- onModalHide.current = () => {};
- }
emojiPopoverAnchor.current = null;
setIsEmojiPickerVisible(false);
}; In #15276, this change was introduced to prevent the Search Input from losing focus on opening. Seems like since then the focusing logic has changed, and if we remove the emoji-hide.mp4What alternative solutions did you explore? (Optional) |
@aimane-chnaif just posted the proposal with the details. |
It's actually a dupe of #23959 |
If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!
Action Performed:
Expected Result:
Mini context menu should be only shown on hovered message.
Actual Result:
Previously opened mini context menu keeps visible regardless of hover state.
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Version Number: 1.3.70.5
Reproducible in staging?: y
Reproducible in production?: y
If this was caught during regression testing, add the test name, ID and link from TestRail:
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos: Any additional supporting documentation
bandicam.2023-09-14.09-50-36-145.mp4
Recording.4506.mp4
Expensify/Expensify Issue URL:
Issue reported by: @akamefi202
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1694699303165169
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: