-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
[$250] mWeb - Chat - Before emoji picker box opens, a seperate compose box with cursor is shown briefly #40461
Comments
Triggered auto assignment to @puneetlath ( |
@puneetlath FYI I haven't added the External label as I wasn't 100% sure about this issue. Please take a look and add the label if you agree it's a bug and can be handled by external contributors |
We think that this bug might be related to #vip-vsp |
ProposalPlease re-state the problem that we are trying to solve in this issue.The main composer is shown when opening the edit composer emoji picker. What is the root cause of that problem?When we focus on an edit composer, the main composer will be hidden. But when the edit composer is blurred, the main composer will shown again. In this case, when we press the emoji picker button, the edit composer will be blurred. But actually, we already prevent the main composer from showing when we press the emoji picker button as shown here. App/src/pages/home/report/ReportActionItemMessageEdit.tsx Lines 449 to 457 in 305f12c
The way it works is, that if the pressed element is an emoji picker button ID, then don't show the main composer yet. However, the emoji picker button element doesn't have the ID set. We already pass the ID here,
However, the pressable component accepts
What changes do you think we should make in order to solve the problem?Rename the props from we may need to check for messageEditInput ID too Note: in native, the main composer will still appear (even though covered by the modal) because it's blurred when the modal shows. To further improve it, we can ignore the blur when the emoji picker modal is active.
But there are currently 2 issues with
The active ID is set after calculating the anchor position, but we need to set it immediately when calling App/src/components/EmojiPicker/EmojiPicker.tsx Lines 88 to 100 in 305f12c
Second, we never clear the active ID when closing the emoji picker, so we need to do that. |
Job added to Upwork: https://www.upwork.com/jobs/~01030e7a0cab136f03 |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @s77rt ( |
@s77rt FYI there is already a proposal above. |
@bernhardoj Thanks for the proposal. Your RCA is correct. This looks to be a regression from 822efb5. Regarding the web solution, we should use |
Yes, I tried it. The but instead of clearing it when other edit message is focused, we should clear it when the emoji picker hides. btw, the 3rd case in the linked issue happens on |
That was the first attempt but didn't work well when a message is deleted from another device while the emoji picker for that message is still open. Let's test that scenario as well as other cases where 🎀 👀 🎀 C+ reviewed |
Not overdue. @puneetlath ^ |
📣 @s77rt 🎉 An offer has been automatically sent to your Upwork account for the Reviewer role 🎉 Thanks for contributing to the Expensify app! |
📣 @bernhardoj 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app! Offer link |
PR is ready cc: @s77rt |
This issue has not been updated in over 15 days. @puneetlath, @s77rt, @bernhardoj eroding to Monthly issue. P.S. Is everyone reading this sure this is really a near-term priority? Be brave: if you disagree, go ahead and close it out. If someone disagrees, they'll reopen it, and if they don't: one less thing to do! |
PR was deployed to production 2 weeks ago |
Whoops, right you are. Can you complete the checklist @s77rt? |
@bernhardoj has been paid. |
|
@puneetlath Done! |
kk all paid. Thanks everyone and sorry for the delay! |
If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!
Version Number: 1.4.63
Reproducible in staging?: Y
Reproducible in production?: Y
If this was caught during regression testing, add the test name, ID and link from TestRail: https://expensify.testrail.io/index.php?/tests/view/4499507
Issue reported by: Applause - Internal Team
Action Performed:
Expected Result:
Before emoji picker box opens, a separate compose box with cursor must not be shown briefly while edit comment
Actual Result:
Before emoji picker box opens, a separate compose box with cursor is shown briefly while edit comment
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Add any screenshot/video evidence
Bug6453358_1713428958074.edit.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: