-
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] [HOLD for payment 2023-07-24] [HOLD for payment 2023-07-21] Chat - Copy to clipboard does not copy with format #22833
Comments
👋 Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open
|
Triggered auto assignment to @iwiznia ( |
I can reproduce on staging as well. @robertKozik I think the issue is coming from this PR, any idea how to fix it? |
@francoisl |
Yeah, removing this new block solves the issue for me: if (['INPUT', 'TEXTAREA'].includes(event.target.nodeName)) {
return;
} ... but it also reintroduces this other issue 🙃 |
I think the previous issue is less serious than this one so reverting would make sense to me |
Yeah, Let's revert it! |
Sorry I was unavailable for a while. Yeah let's revert this if needed. I wasn't aware of such a consequences of that fix |
hello, I've got a solution ready that addresses both problems. If you're open to Proposals, I'm available to assist |
ProposalProblem:Issue #22803: The first problem occurs when we past in the edit comment composer, it gets pasted into the main composer. Root Cause:We changed the event listener from the text input to the document, resulting in any paste action focusing on the main composer and adding text to it. This change was made to fulfill certain requirements mentioned in this PR: #22817. To address the first issue, we implemented a check to determine if any textarea or text input is currently focused. If so, we stop our handler and allow the default paste action to occur without formatting. However, this solution introduced a current issue . Additionally, checking Solution:We will add two paste listeners:
With these changes, when pasting without any focused text input, the document's Here are the proposed changes: Ready to merge Result :Screen.Recording.2023-07-14.at.12.40.32.AM.movcc: @francoisl |
Didn't work and multiple event listeners for the same event in a component. Bad! |
hello @Santhosh-Sellavel do you test it ?? I test it and attach a video if you don't.
it's the same event and we return early so only one will work. I hope you confirm which case does not work for you. |
Seems you updated the changes after posting. We tested it earlier |
But it has another issue cursor gets misplaced and still not opting due Screen.Recording.2023-07-14.at.3.29.43.AM.mov |
|
This comment was marked as outdated.
This comment was marked as outdated.
Let's close this issue and keep the discussion in #22803 @joekaufmanexpensify we'll just need to compensate @Santhosh-Sellavel for reviewing the internal fix PR #22845 |
@francoisl Sounds good! Just to clarify, you mean don't complete the BZ checklist here (as this was a regression of the other issue). And then just pay @Santhosh-Sellavel for reviewing the PR fix here (once the 7 day regression period is up on 2023-07-21? If so, that sounds good to me! |
Correct, no need to complete the BZ checklist. |
Cool cool, thanks! Going to set this back to weekly for now. And then we'll pay Santhosh $1,000 for reviewing on 2023-07-01! |
@Santhosh-Sellavel when you have a sec, could you please request $1,000 for this issue, and leave a comment here once you've submitted your request? |
Requested on ND |
Approved |
Hi @francoisl, @joekaufmanexpensify is it eligible for reporting bonus? |
Ah, yep thanks for pointing that out @dhanashree-sawant . This is eligible for a reporting bonus. |
Adding external label to create upwork job |
Job added to Upwork: https://www.upwork.com/jobs/~0109720246c50a4eba |
Current assignee @joekaufmanexpensify is eligible for the External assigner, not assigning anyone new. |
Current assignee @Santhosh-Sellavel is eligible for the External assigner, not assigning anyone new. |
@dhanashree-sawant offer sent for $250! |
@dhanashree-sawant $250 sent and contract ended! |
Upwork job closed. |
All payment is issued, closing as this is all set. Thanks everyone! |
If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!
Action Performed:
Expected Result:
App should copy text with formatting on click of copy to clipboard
Actual Result:
App does not copy text with formatting on click of copy to clipboard
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Version Number: 1.3.40-4
Reproducible in staging?: y
Reproducible in production?: n
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
copy.to.clipboard.without.format.mp4
Recording.3604.mp4
Expensify/Expensify Issue URL:
Issue reported by: @dhanashree-sawant
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1689272192380209
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: