-
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
[$500] Chat - The cursor appears before the last letter in the compose box when pasting #39272
Comments
Triggered auto assignment to @tgolen ( |
Triggered auto assignment to @MitchExpensify ( |
👋 Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open `StagingDeployCash` deploy checklist to see the list of PRs included in this release, then work quickly to do one of the following:
|
We think this bug might be related to #vip-vsb |
@MitchExpensify 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. |
Not a blocker - added to the main tracking issue |
Job added to Upwork: https://www.upwork.com/jobs/~01500831e0ec092b01 |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @ntdiary ( |
ProposalPlease re-state the problem that we are trying to solve in this issue.Chat - The cursor appears before the last letter in the compose box when pasting What is the root cause of that problem?The main problem is that we use As result when we try to get range.legth we ignore each line break, so we have an offset (-1 for each new line) What changes do you think we should make in order to solve the problem?To fix this issue we can use span instead of div And plus to save using styles for divs we need update display to block I found a slightly similar problem here Screen.Recording.2024-04-02.at.09.40.16.movWhat alternative solutions did you explore? (Optional)Alternatively, we can update the result of window.getSelection() |
This issue is already being handled in a PR by @Skalakid #39177 (comment) @thienlnam please assign him to this task |
un-assign myself. :) |
I think @Skalakid needs to comment here for us to assign them |
Hi, I'm Michał from SWM, an expert agency. Please assign me to this task |
We should be able to close this one @thienlnam |
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.58.0
Reproducible in staging?: Yes
Reproducible in production?: No
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
Expensify/Expensify Issue URL:
Issue reported by: Applause Internal Team
Slack conversation:
Action Performed:
Expected Result:
The cursor should appear after the last letter
Actual Result:
The cursor appears before the last letter in the compose box when copy/pasting multiline text
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Add any screenshot/video evidence
bandicam.2024-03-29.16-46-01-107.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: