Skip to content
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 - Entering multi line text by tapping enter key, cursor goes down instead of next line #48544

Closed
1 of 6 tasks
lanitochka17 opened this issue Sep 4, 2024 · 25 comments
Assignees
Labels
Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 Engineering External Added to denote the issue can be worked on by a contributor Help Wanted Apply this label when an issue is open to proposals by contributors

Comments

@lanitochka17
Copy link

lanitochka17 commented Sep 4, 2024

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: 9.0.29
Reproducible in staging?: Y
Reproducible in production?: N
If this was caught during regression testing, add the test name, ID and link from TestRail: https://expensify.testrail.io/index.php?/tests/view/4919668
Issue reported by: Applause - Internal Team

Action Performed:

  1. Go to https://staging.new.expensify.com/home
  2. Open a chat
  3. Copy the url and paste in compose
  4. Send the message
  5. Edit the message by long pressing the message
  6. Remove url text and try to enter multi line text by tapping enter key

Expected Result:

Entering multi line text by tapping enter key, cursor must go to next line

Actual Result:

Entering multi line text by tapping enter key, cursor goes down instead of next line

Workaround:

Unknown

Platforms:

Which of our officially supported platforms is this issue occurring on?

  • Android: Native
  • Android: mWeb Chrome
  • iOS: Native
  • iOS: mWeb Safari
  • MacOS: Chrome / Safari
  • MacOS: Desktop

Screenshots/Videos

Add any screenshot/video evidence

Bug6592442_1725419174701.Screenrecorder-2024-09-04-08-27-54-262_compress_1.mp4

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~021831319729138132205
  • Upwork Job ID: 1831319729138132205
  • Last Price Increase: 2024-09-25
@lanitochka17 lanitochka17 added DeployBlockerCash This issue or pull request should block deployment DeployBlocker Indicates it should block deploying the API labels Sep 4, 2024
Copy link

melvin-bot bot commented Sep 4, 2024

Triggered auto assignment to @Gonals (DeployBlockerCash), see https://stackoverflowteams.com/c/expensify/questions/9980/ for more details.

Copy link
Contributor

github-actions bot commented Sep 4, 2024

👋 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:

  1. Identify the pull request that introduced this issue and revert it.
  2. Find someone who can quickly fix the issue.
  3. Fix the issue yourself.

@lanitochka17
Copy link
Author

Production:

Screen_Recording_20240904_071959_Chrome.mp4

@Gonals Gonals added Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. External Added to denote the issue can be worked on by a contributor and removed DeployBlockerCash This issue or pull request should block deployment DeployBlocker Indicates it should block deploying the API Hourly KSv2 labels Sep 4, 2024
@melvin-bot melvin-bot bot changed the title mWeb - Chat - Entering multi line text by tapping enter key, cursor goes down instead of next line [$250] mWeb - Chat - Entering multi line text by tapping enter key, cursor goes down instead of next line Sep 4, 2024
Copy link

melvin-bot bot commented Sep 4, 2024

Job added to Upwork: https://www.upwork.com/jobs/~021831319729138132205

Copy link

melvin-bot bot commented Sep 4, 2024

Triggered auto assignment to @alexpensify (Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details. Please add this bug to a GH project, as outlined in the SO.

@melvin-bot melvin-bot bot added the Help Wanted Apply this label when an issue is open to proposals by contributors label Sep 4, 2024
Copy link

melvin-bot bot commented Sep 4, 2024

Triggered auto assignment to Contributor-plus team member for initial proposal review - @Ollyws (External)

@Gonals
Copy link
Contributor

Gonals commented Sep 4, 2024

I don't think we need to block deploy on this one

@kaushiktd
Copy link
Contributor

kaushiktd commented Sep 5, 2024

@Gonals @lanitochka17 when I long-press the message, the option to "Copy URL to clipboard" appears instead of the "Edit" option. How can I resolve this issue and enable message editing?
here is the video

screen-capture.webm

@melvin-bot melvin-bot bot added the Overdue label Sep 9, 2024
@alexpensify
Copy link
Contributor

@Gonals can we get your feedback here? Thanks!

@melvin-bot melvin-bot bot removed the Overdue label Sep 9, 2024
@Gonals
Copy link
Contributor

Gonals commented Sep 11, 2024

@Gonals @lanitochka17 when I long-press the message, the option to "Copy URL to clipboard" appears instead of the "Edit" option. How can I resolve this issue and enable message editing? here is the video

screen-capture.webm

Don't press directly on top of the URL. Just the general message.

Copy link

melvin-bot bot commented Sep 11, 2024

📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸

@QichenZhu
Copy link
Contributor

The composer is focused before the context menu disappears, causing issues with the focus trap and React event system. PR #48973 will fix this by adding a delay.

Just sharing my findings, hoping they help address the root cause in the upstream library. Here’s what happens:

  1. After the Edit comment option is clicked, the composer is auto-focused, but the context menu is still animating out. Its focus trap is still active, and stops the focusin event's propagation (which is bad). The composer is still focused anyway because the focusin event can't be canceled.

  2. React doesn’t receive the focusin event and fails to update the activeElement. This prevents React from getting the current selection of activeElement.

https://github.com/facebook/react/blob/f1338f8080abd1386454a10bbf93d67bfe37ce85/packages/react-dom/src/events/plugins/SelectEventPlugin.js#L162

Screenshot 2024-09-13 at 7 55 37 AM

https://github.com/facebook/react/blob/f1338f8080abd1386454a10bbf93d67bfe37ce85/packages/react-dom/src/events/plugins/SelectEventPlugin.js#L108

Screenshot 2024-09-13 at 7 57 03 AM

 

  1. When Enter is pressed, the composer does not know the caret position and inserts the new line at the end of the text.

@alexpensify
Copy link
Contributor

@Ollyws when you get a chance, can you review these proposals? Thanks!

@Ollyws
Copy link
Contributor

Ollyws commented Sep 15, 2024

No proposals to review but thanks for the info @QichenZhu

@Ollyws
Copy link
Contributor

Ollyws commented Sep 15, 2024

Awaiting proposals...

@alexpensify
Copy link
Contributor

Open for proposals here

@kaushiktd
Copy link
Contributor

@Ollyws when long press on any text message, It shows all the option to edit the message, but when trying to edit URL message or link. It doesn't show edit comment option. It shows only Copy URL. You can find attached image.
Simulator Screenshot - iPhone 15 Pro - 2024-09-17 at 09 29 31

Copy link

melvin-bot bot commented Sep 18, 2024

📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸

Copy link

melvin-bot bot commented Sep 18, 2024

@alexpensify @Ollyws @Gonals this issue was created 2 weeks ago. Are we close to approving a proposal? If not, what's blocking us from getting this issue assigned? Don't hesitate to create a thread in #expensify-open-source to align faster in real time. Thanks!

@alexpensify
Copy link
Contributor

Waiting for proposals here

@alexpensify
Copy link
Contributor

Still open here

@melvin-bot melvin-bot bot added the Overdue label Sep 23, 2024
@alexpensify
Copy link
Contributor

It is not overdue; we are open to proposals here.

@melvin-bot melvin-bot bot removed the Overdue label Sep 23, 2024
@QichenZhu
Copy link
Contributor

The composer is focused before the context menu disappears, causing issues with the focus trap and React event system. PR #48973 will fix this by adding a delay.

The PR has been merged, and this issue is no longer reproducible.

Record_2024-09-24-15-36-23-2024-09-24.03_41_32.337.mp4

Copy link

melvin-bot bot commented Sep 25, 2024

📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸

@melvin-bot melvin-bot bot added the Overdue label Sep 25, 2024
@alexpensify
Copy link
Contributor

Closing - it looks like this one was fixed in another GH. Thanks for the update.

@melvin-bot melvin-bot bot removed the Overdue label Sep 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 Engineering External Added to denote the issue can be worked on by a contributor Help Wanted Apply this label when an issue is open to proposals by contributors
Projects
No open projects
Status: No status
Development

No branches or pull requests

6 participants