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

iOS - Composer - No copy paste option in edit mode #49977

Closed
1 of 6 tasks
IuliiaHerets opened this issue Oct 1, 2024 · 7 comments
Closed
1 of 6 tasks

iOS - Composer - No copy paste option in edit mode #49977

IuliiaHerets opened this issue Oct 1, 2024 · 7 comments
Assignees
Labels
Bug Something is broken. Auto assigns a BugZero manager. DeployBlockerCash This issue or pull request should block deployment Engineering Reviewing Has a PR in review Weekly KSv2

Comments

@IuliiaHerets
Copy link

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..42-0
Reproducible in staging?: Y
Reproducible in production?: N
Email or phone of affected tester (no customers): applausetester+zm27@applause.expensifail.com
Issue reported by: Applause Internal Team

Action Performed:

  1. Launch New Expensify app.
  2. Go to DM.
  3. Long tap on any message.
  4. Tap Edit comment.
  5. Tap on the composer to bring up context menu.

Expected Result:

There will be copy paste option in edit mode.

Actual Result:

There is no copy paste option in edit mode.

Workaround:

Unknown

Platforms:

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

Screenshots/Videos

Bug6620895_1727771529331.no_copy_no_paste_.mp4

View all open jobs on GitHub

@IuliiaHerets IuliiaHerets added DeployBlockerCash This issue or pull request should block deployment Bug Something is broken. Auto assigns a BugZero manager. labels Oct 1, 2024
Copy link

melvin-bot bot commented Oct 1, 2024

Triggered auto assignment to @anmurali (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 Daily KSv2 label Oct 1, 2024
Copy link

melvin-bot bot commented Oct 1, 2024

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

@github-actions github-actions bot added Engineering Hourly KSv2 and removed Daily KSv2 labels Oct 1, 2024
Copy link
Contributor

github-actions bot commented Oct 1, 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.

@hungvu193
Copy link
Contributor

Regression from: #32711

@layacat
Copy link
Contributor

layacat commented Oct 1, 2024

Proposal

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

iOS - Composer - No copy paste option in edit mode

What is the root cause of that problem?

We recently introduce the logic of hiding context menu for Composer text input with contextMenuHidden in #32711

We already implemented it for the main composer however we forgot to implement onTouchStart for the composer of ReportActionItemMessageEdit which makes the showSoftInputOnFocus is always undefined and because of that the condition inside native composer is never called:

    useEffect(() => {
        if (!showSoftInputOnFocus || !isKeyboardShown) {
            return;
        }
        setContextMenuHidden(false);
    }, [showSoftInputOnFocus, isKeyboardShown]);

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

Just implement the logic of onTouchStart for the composer of ReportActionItemMessageEdit too:


     onTouchStart={() => {
                        if (showSoftInputOnFocus) {
                            return;
                        }
                        if (Browser.isMobileSafari()) {
                            setTimeout(() => {
                                setShowSoftInputOnFocus(true);
                            }, CONST.ANIMATED_TRANSITION);
                            return;
                        }
                        setShowSoftInputOnFocus(true);
                    }}

What alternative solutions did you explore? (Optional)

N/A

@jasperhuangg
Copy link
Contributor

Retest request is here for easy access

@m-natarajan
Copy link

Issue fixed

ScreenRecording_10-02-2024.01-35-36_1.MP4

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. DeployBlockerCash This issue or pull request should block deployment Engineering Reviewing Has a PR in review Weekly KSv2
Projects
None yet
Development

No branches or pull requests

7 participants