Skip to content

Android - Room - Enter key saves the room description instead of entering the next line #46644

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!


Version Number: 9.0.15-4
Reproducible in staging?: Y
Reproducible in production?: N
Logs: https://stackoverflow.com/c/expensify/questions/4856
Issue reported by: Applause-Internal team

Action Performed:

Precondition:

  • Device keyboard must be Samsung keyboard.
  • This issue is not reproducible with Gboard.
  1. Launch New Expensify app.
  2. Go to any room.
  3. Tap on the room header.
  4. Tap on Room description.
  5. Enter some text.
  6. Tap Enter on the keyboard.

Expected Result:

Enter key will enter the next line (production behavior with Samsung keyboard).

Actual Result:

Enter key saves the room description instead of entering the next line.

This issue is only reproducible on Samsung keyboard and not Gboard.

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

Bug6558711_1722469785650.1722469611748_Screen_Recording_20240801_074553_New_Expensify.mp4

View all open jobs on GitHub

Issue OwnerCurrent Issue Owner: @rayane-djouah

Activity

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

    @melvin-bot

    Triggered auto assignment to @jliexpensify (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 1, 2024

    @melvin-bot

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

  4. github-actions commented on Aug 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. izarutskaya commented on Aug 1, 2024

    @izarutskaya
    Author

    We think this issue might be related to the #vip-vsb

  6. izarutskaya commented on Aug 1, 2024

    @izarutskaya
    Author

    Production

    Screen_Recording_20240801_121709_New.Expensify.mp4
  7. huult commented on Aug 1, 2024

    @huult
    Contributor

    Proposal

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

    Enter key saves the room description instead of entering the next line

    What is the root cause of that problem?

    Missing disablePressOnEnter in FormProvider to disable saving on Enter key press.

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

    Add disablePressOnEnter in FormProvider to disable saving on Enter key press.

    // src/pages/RoomDescriptionPage.tsx#L76
    
                  <FormProvider
                        style={[styles.flexGrow1, styles.ph5]}
                        formID={ONYXKEYS.FORMS.REPORT_DESCRIPTION_FORM}
                        onSubmit={submitForm}
                        submitButtonText={translate('common.save')}
                        enabledWhenOffline
    +                   disablePressOnEnter
                    >
    DetailsPOC
    Screen_Recording_20240801_132510_New.Expensify.Dev.mp4
  8. 5 remaining items

  9. rayane-d commented on Aug 1, 2024

    @rayane-d
    Contributor

    @nyomanjyotisa Could you please take a look at this issue?
    I think we should enable disablePressOnEnter when one of the form inputs has shouldSubmitForm as false and it's focused

    shouldSubmitForm: !!shouldSubmitForm,

  10. MonilBhavsar commented on Aug 1, 2024

    @MonilBhavsar
    Contributor

    Thank you for looking. If you don't mind, I'll assign you to this issue as a C+

  11. nyomanjyotisa commented on Aug 1, 2024

    @nyomanjyotisa
    Member

    Sure, will check and create a follow up PR today

  12. MonilBhavsar commented on Aug 2, 2024

    @MonilBhavsar
    Contributor

    Thank you @nyomanjyotisa! I have assigned you to the issue

  13. rayane-d commented on Aug 5, 2024

    @rayane-d
    Contributor

    Any update here @nyomanjyotisa ? 😃

  14. added
    ReviewingHas a PR in review
    and removed on Aug 6, 2024
  15. nyomanjyotisa commented on Aug 6, 2024

    @nyomanjyotisa
    Member

    @rayane-djouah PR ready for review

  16. rayane-d commented on Aug 19, 2024

    @rayane-d
    Contributor

    PR on staging

  17. rayane-d commented on Aug 20, 2024

    @rayane-d
    Contributor

    @MonilBhavsar We can close this one. No payment is due.

  18. MonilBhavsar commented on Aug 20, 2024

    @MonilBhavsar
    Contributor

    Sounds good, thanks all for the help!

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