Skip to content

[$250] Expense - Unable to create a new line in description field with SHIFT+ENTER #48061

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

Action Performed:

  1. Go to staging.new.expensify.com
  2. Go to chat.
  3. Click + > Submit expense > Manual.
  4. Enter amount > Next.
  5. Click Description.
  6. Enter some text, then press SHIFT+ENTER (enter key for mweb).

Expected Result:

A new line will be created with SHIFT+ENTER.

Actual Result:

A new line is not created with SHIFT+ENTER. The description is saved instead.

This issue happens in IOU, task and room description.

Workaround:

Unknown

Platforms:

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

Screenshots/Videos

Bug6583767_1724725007695.20240827_101239.mp4

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~0140f764621c9cb74a
  • Upwork Job ID: 1828427517631808725
  • Last Price Increase: 2024-08-27
Issue OwnerCurrent Issue Owner: @s77rt

Activity

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

    @melvin-bot

    Triggered auto assignment to @kadiealexander (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 Aug 27, 2024

    @melvin-bot

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

  4. IuliiaHerets commented on Aug 27, 2024

    @IuliiaHerets
    Author

    We think that this bug might be related to #wave-collect - Release 1

  5. github-actions commented on Aug 27, 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.
  6. added and removed
    DeployBlockerCashThis issue or pull request should block deployment
    on Aug 27, 2024
  7. 9 remaining items

  8. s77rt commented on Aug 27, 2024

    @s77rt
    Member

    @bernhardoj Thanks for the proposal. I think this one should be fixed by the PR author given it's a new regression #47705. cc @Krishna2323 @ZhenjaHorbach

  9. ZhenjaHorbach commented on Aug 27, 2024

    @ZhenjaHorbach
    Contributor

    Oh
    Yeah
    This is ours !
    @Krishna2323
    Could you raise the PR please?

  10. Krishna2323 commented on Aug 27, 2024

    @Krishna2323
    Contributor

    @ZhenjaHorbach, will raise the PR within an hour.

  11. bernhardoj commented on Aug 28, 2024

    @bernhardoj
    Contributor

    Since the help wanted label is added, I think we can apply my solution instead of reintroducing deprecated ACCESSIBILITY_ROLE constant and also applying additional changes from my proposal.

  12. s77rt commented on Aug 28, 2024

    @s77rt
    Member

    @bernhardoj

    Add "textbox" back to CONST.ROLE.

    The textbox is not a valid role value according to this list

    the live markdown input only accepts accessibilityRole props. Regarding this one, maybe we can update it to accept role instead

    This makes sense but it won't fix the problem as if we do that now the role will be presentation and the enter shortcut will still not be disabled

  13. bernhardoj commented on Aug 28, 2024

    @bernhardoj
    Contributor

    The textbox is not a valid role value according to this list

    Looks like it's different between RN and RN-web since RN-web supports all ARIA roles. Maybe on native, it's not explicitly needed to set the role to an input, similar to web where it's recommended to use input without any role.

    as if we do that now the role will be presentation and the enter shortcut will still not be disabled

    Yes, that's why I suggest this.

    But actually, if we see the doc here, it's mentioned that it's better to use input with type text or textarea instead of using role. The input in our app already uses those tags, except live markdown which needs to use a div with the role of textbox. So, it's better if we remove all role props from all input.

  14. s77rt commented on Aug 28, 2024

    @s77rt
    Member

    @bernhardoj If we remove the role prop from all input, including single-line inputs, then the enter key press won't be captured but it's needed in that case.

  15. melvin-bot commented on Sep 20, 2024

    @melvin-bot

    This issue has not been updated in over 15 days. @s77rt, @Gonals, @kadiealexander eroding to Monthly issue.

    P.S. Is everyone reading this sure this is really a near-term priority? Be brave: if you disagree, go ahead and close it out. If someone disagrees, they'll reopen it, and if they don't: one less thing to do!

  16. s77rt commented on Sep 20, 2024

    @s77rt
    Member

    @kadiealexander @Gonals Let's close this. Fixed on #48128

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.EngineeringExternalAdded to denote the issue can be worked on by a contributorHelp WantedApply this label when an issue is open to proposals by contributorsMonthlyKSv2ReviewingHas a PR in review

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions