Skip to content

Request Money - Text written with line breaks is connected together when Editing Description #26279

Closed

Description

@izarutskaya

If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!


Action Performed:

  1. Open any chat.
  2. Click the (+) icon > click request money.
  3. On description input write something with a line break.
  4. Click on Save> Request Money
  5. Go to the Money Request thread and Notice that the Description Text with linebreaks is shown properly.
  6. Click on the description to edit. Notice that text written with line breaks a connected together.

Expected Result:

Text written with line breaks is not connected together.

Actual Result:

Text written with line breaks is connected together.

Workaround:

Unknown

Platforms:

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

  • Android / native
  • Android / Chrome
  • iOS / native
  • iOS / Safari
  • MacOS / Chrome / Safari
  • MacOS / Desktop

Version Number: v1.3.59-0

Reproducible in staging?: Y

Reproducible in production?: N

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

Notes/Photos/Videos: Any additional supporting documentation

T137linebreak-1.mp4
Recording.1378.mp4

Expensify/Expensify Issue URL:

Issue reported by: @daveSeife

Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1693375111880949

View all open jobs on GitHub

Activity

  1. added
    DeployBlockerCash
    Daily
    Bug
    on Aug 30, 2023
  2. melvin-bot commented on Aug 30, 2023

    @melvin-bot

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

  3. melvin-bot commented on Aug 30, 2023

    @melvin-bot

    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
  4. OSBotify commented on Aug 30, 2023

    @OSBotify
    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. melvin-bot commented on Aug 30, 2023

    @melvin-bot

    Triggered auto assignment to @srikarparsi (Engineering), see https://stackoverflow.com/c/expensify/questions/4319 for more details.

  6. StevenKKC commented on Aug 30, 2023

    @StevenKKC
    Contributor

    Proposal

    Please state again the problem we are trying to solve in this issue.

    Text written with line breaks is connected together when Editing Description.

    What is the cause of this issue?

    The root cause is that EditRequestDescriptionPage does not allow multiline description input.

    <TextInput
    // Comment field does not have its modified counterpart
    inputID="comment"
    name="comment"
    defaultValue={defaultDescription}
    label={translate('moneyRequestConfirmationList.whatsItFor')}
    accessibilityLabel={translate('moneyRequestConfirmationList.whatsItFor')}
    accessibilityRole={CONST.ACCESSIBILITY_ROLE.TEXT}
    ref={(e) => (descriptionInputRef.current = e)}
    />

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

    We can add multiline support in EditRequestDescriptionPage.

        <TextInput
            ...
            autoGrowHeight
            containerStyles={[styles.autoGrowHeightMultilineInput]}
            textAlignVertical="top"
            submitOnEnter={!Browser.isMobile()}
        />

    What alternative solutions have you investigated? (Optional)

    None.

  7. StevenKKC commented on Aug 30, 2023

    @StevenKKC
    Contributor

    It seems dupe of #25494

  8. aimane-chnaif commented on Aug 30, 2023

    @aimane-chnaif
    Contributor

    Let's close this as dupe of #25494

  9. removed
    DeployBlockerCash
    on Apr 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

BugEngineeringHourly

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions