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

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

Closed
1 of 6 tasks
izarutskaya opened this issue Aug 1, 2024 · 16 comments
Closed
1 of 6 tasks
Assignees
Labels
Bug Something is broken. Auto assigns a BugZero manager. Engineering Reviewing Has a PR in review Weekly KSv2

Comments

@izarutskaya
Copy link

izarutskaya commented Aug 1, 2024

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
@izarutskaya izarutskaya added DeployBlockerCash This issue or pull request should block deployment Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. DeployBlocker Indicates it should block deploying the API labels Aug 1, 2024
Copy link

melvin-bot bot commented Aug 1, 2024

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.

Copy link

melvin-bot bot commented Aug 1, 2024

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

Copy link
Contributor

github-actions bot commented Aug 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.

@izarutskaya
Copy link
Author

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

@izarutskaya
Copy link
Author

Production

Screen_Recording_20240801_121709_New.Expensify.mp4

@huult
Copy link
Contributor

huult commented Aug 1, 2024

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
                >
POC
Screen_Recording_20240801_132510_New.Expensify.Dev.mp4

@MonilBhavsar MonilBhavsar added Daily KSv2 and removed DeployBlockerCash This issue or pull request should block deployment Hourly KSv2 DeployBlocker Indicates it should block deploying the API labels Aug 1, 2024
@MonilBhavsar
Copy link
Contributor

Demoting from blocker as it happens on samsung keyboards only. Commented on the suspicious PR. I think this should be handled as a regression

@rayane-djouah
Copy link
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,

@MonilBhavsar
Copy link
Contributor

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

@nyomanjyotisa
Copy link
Contributor

Sure, will check and create a follow up PR today

@MonilBhavsar
Copy link
Contributor

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

@rayane-djouah
Copy link
Contributor

Any update here @nyomanjyotisa ? 😃

@nyomanjyotisa
Copy link
Contributor

@rayane-djouah PR ready for review

@rayane-djouah
Copy link
Contributor

PR on staging

@rayane-djouah
Copy link
Contributor

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

@MonilBhavsar
Copy link
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
Labels
Bug Something is broken. Auto assigns a BugZero manager. Engineering Reviewing Has a PR in review Weekly KSv2
Projects
None yet
Development

No branches or pull requests

6 participants