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

[$500] mWeb/Safari - Edit message - Text input not focused & keypad doesn't appear when edit message box activated #32216

Closed
1 of 6 tasks
lanitochka17 opened this issue Nov 29, 2023 · 8 comments
Assignees
Labels
Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 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 Nov 29, 2023

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.5-3
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
Expensify/Expensify Issue URL:
Issue reported by: Applause - Internal Team
Slack conversation:

Action Performed:

  1. Navigate to staging.new.expensify.com
  2. Navigate to any conversation
  3. Tap and hold on sent message to view the action menu
  4. Tap on the Pencil icon to activate the edit message box

Expected Result:

As per step 4, the text input is focused and the keyboard appears for mobile when edit message box is activated

Actual Result:

Text input not focused & keypad doesn't appear when edit message box activated

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

Bug6294978_1701281839860.SYRC8491.mp4

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~013eec6f943cbf57c0
  • Upwork Job ID: 1729936507297144832
  • Last Price Increase: 2023-11-29
@lanitochka17 lanitochka17 added External Added to denote the issue can be worked on by a contributor Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels Nov 29, 2023
@melvin-bot melvin-bot bot changed the title mWeb/Safari - Edit message - Text input not focused & keypad doesn't appear when edit message box activated [$500] mWeb/Safari - Edit message - Text input not focused & keypad doesn't appear when edit message box activated Nov 29, 2023
Copy link

melvin-bot bot commented Nov 29, 2023

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

Copy link

melvin-bot bot commented Nov 29, 2023

Triggered auto assignment to @johncschuster (Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details.

@melvin-bot melvin-bot bot added the Help Wanted Apply this label when an issue is open to proposals by contributors label Nov 29, 2023
Copy link

melvin-bot bot commented Nov 29, 2023

Bug0 Triage Checklist (Main S/O)

  • This "bug" occurs on a supported platform (ensure Platforms in OP are ✅)
  • This bug is not a duplicate report (check E/App issues and #expensify-bugs)
    • If it is, comment with a link to the original report, close the issue and add any novel details to the original issue instead
  • This bug is reproducible using the reproduction steps in the OP. S/O
    • If the reproduction steps are clear and you're unable to reproduce the bug, check with the reporter and QA first, then close the issue.
    • If the reproduction steps aren't clear and you determine the correct steps, please update the OP.
  • This issue is filled out as thoroughly and clearly as possible
    • Pay special attention to the title, results, platforms where the bug occurs, and if the bug happens on staging/production.
  • I have reviewed and subscribed to the linked Slack conversation to ensure Slack/Github stay in sync

Copy link

melvin-bot bot commented Nov 29, 2023

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

@shreyfirst
Copy link

shreyfirst commented Nov 29, 2023

Proposal

Please re-state the problem that we are trying to solve in this issue.

We want the text input to be focused and keyboard to be shown when the Edit Message button is pressed.

What is the root cause of that problem?

The issue is that we are not indicating that the text box should be focused (aside from the UI showing it is, the browser is not focusing it) when you click the menu item. We're specifically handling for mWeb/Safari in this specific issue as the DOM hasn't loaded at this point.

What changes do you think we should make in order to solve the problem?

On the initial load of the message edit component, we should add a check to make sure that the input is in the DOM and ready to be focused before we update the selection prop. We will also look for how other parts of the code interact with the input to see if it might be causing the input to lose focus after the selection prop is updated.

@melvin-bot melvin-bot bot added the Overdue label Dec 2, 2023
@getusha
Copy link
Contributor

getusha commented Dec 3, 2023

Looks like a dupe of #10414, we can close it.

@melvin-bot melvin-bot bot removed the Overdue label Dec 3, 2023
@s-alves10
Copy link
Contributor

This is not reproducible on the latest main

@melvin-bot melvin-bot bot added the Overdue label Dec 6, 2023
@johncschuster
Copy link
Contributor

Thanks for confirming that! I'll go ahead and close it.

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 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
None yet
Development

No branches or pull requests

5 participants