Skip to content

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

Closed

Description

@IuliiaHerets

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

Activity

  1. added
    DeployBlockerCashThis issue or pull request should block deployment
    BugSomething is broken. Auto assigns a BugZero manager.
    on Oct 1, 2024
  2. melvin-bot commented on Oct 1, 2024

    @melvin-bot

    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.

  3. melvin-bot commented on Oct 1, 2024

    @melvin-bot

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

  4. github-actions commented on Oct 1, 2024

    @github-actions
    Contributor

    👋 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.
  5. hungvu193 commented on Oct 1, 2024

    @hungvu193
    Contributor

    Regression from: #32711

  6. layacat commented on Oct 1, 2024

    @layacat
    Contributor

    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

  7. jasperhuangg commented on Oct 1, 2024

    @jasperhuangg
    Contributor

    Retest request is here for easy access

  8. m-natarajan commented on Oct 1, 2024

    @m-natarajan

    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

Metadata

Metadata

Labels

BugSomething is broken. Auto assigns a BugZero manager.EngineeringReviewingHas a PR in reviewWeeklyKSv2

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions