-
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
[$1000] The mini context menu hides when the last comment of a new chat is copied on Safari #18664
Comments
Triggered auto assignment to @NicMendonca ( |
Bug0 Triage Checklist (Main S/O)
|
ProposalPlease re-state the problem that we are trying to solve in this issue.TextArea getting focused when we click copy to clipboard. What is the root cause of that problem?We are getting App/src/libs/Clipboard/index.js Lines 31 to 33 in b730027
and here we try to set back selection to App/src/libs/Clipboard/index.js Lines 64 to 68 in b730027
What changes do you think we should make in order to solve the problem?To fix this we can avoid
Screen.Recording.2023-05-10.at.1.27.14.AM.movWhat alternative solutions did you explore? (Optional)NA |
I understand this now. Agree we should fix to keep it consistent across platforms |
Job added to Upwork: https://www.upwork.com/jobs/~0142123b8c491008a1 |
Current assignee @NicMendonca is eligible for the External assigner, not assigning anyone new. |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @parasharrajat ( |
Triggered auto assignment to @robertjchen ( |
ProposalPlease re-state the problem that we are trying to solve in this issue.The mini context menu hides when the last comment of a new chat is copied on Safari What is the root cause of that problem?App/src/libs/Clipboard/index.js Lines 31 to 34 in 1d951e6
We are checking if firstAnchorChild is HTMLTextAreaElement we will focus on it App/src/libs/Clipboard/index.js Lines 64 to 68 in 1d951e6
As mentioned here
It is the reason why when clicking Copy to Clipboard Icon on the last comment, What changes do you think we should make in order to solve the problem?App/src/libs/Clipboard/index.js Line 14 in 7378626
App/src/libs/Clipboard/index.js Line 78 in 7378626
In both
What alternative solutions did you explore? (Optional)App/src/libs/Clipboard/index.js Line 33 in 1d951e6
Here, we should add one more condition to check if the user selects text by clicking Copy to Clipboard Icon. If true, isComposer will be false const isComposer = firstAnchorChild instanceof HTMLTextAreaElement && selection.type === 'Range'; Because when clicking Copy to Clipboard Icon, selection.type === 'Caret'; ResultJust checked again and It works well Screen-Recording-2023-05-11-at-17.11.37.mp4 |
Thanks for all the proposals so far, we will evaluate this week. |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
@robertjchen any update here? |
My bad, Catching up here. Give me sometime to review these. |
Thanks for the proposals. Both of proposals' root cause is incomplete. We should try to explain Why as well.
So this happens on Safari. On Safari we are using This was the reason I renamed this function to About the solutions. IMO, we can blur the composer before the sync clipboard set, it should resolve the issue. So an alternative will be:
|
@parasharrajat Thanks for your explanation. I just updated proposal as your suggestion and test again. It works well |
Yes, agreed. @parasharrajat @adeel0202 I have sent you both an offer in Upworks for the job. @dukenv0307 I couldn't find you in Upworks. Can you please apply here: https://www.upwork.com/jobs/~0142123b8c491008a1 |
@tjferriss applied, thank you! |
Reporting bonus paid to @adeel0202 Waiting on @parasharrajat and @dukenv0307 to accept offers to be paid. Then we can close the issue. |
@tjferriss Done. |
waiting on @dukenv0307 |
@robertjchen I've accepted, thanks! |
@robertjchen @parasharrajat @NicMendonca @dukenv0307 this issue is now 4 weeks old and preventing us from maintaining WAQ, can you:
Thanks! |
Current assignee @parasharrajat is eligible for the Internal assigner, not assigning anyone new. |
@NicMendonca Can we please take the necessary actions on this and close it? |
Thanks all, I think this can be closed. |
@robertjchen Payments are pending on this for me. |
Bump @tjferriss |
I've paid everyone out! 🎉 thank you! |
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:
The mini context menu doesn't hide
Actual Result:
The mini context menu hides
Workaround:
Can the user still use Expensify without this being fixed? Have you informed them of the workaround?
Platforms:
Which of our officially supported platforms is this issue occurring on?
Version Number: 1.3.12.0
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
Screen.Recording.2023-05-05.at.7.32.45.PM.mov
Recording.186.mp4
Expensify/Expensify Issue URL:
Issue reported by: @adeel0202
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1683297242361699
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: