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

Taxes - Tapping on Save button does not save the tax name when keyboard is up #41755

Closed
2 of 6 tasks
m-natarajan opened this issue May 7, 2024 · 9 comments
Closed
2 of 6 tasks
Assignees
Labels
Bug Something is broken. Auto assigns a BugZero manager. Engineering Hourly KSv2

Comments

@m-natarajan
Copy link

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: 1.4.71-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
Expensify/Expensify Issue URL:
Issue reported by: Applause internal team
Slack conversation:

Action Performed:

  1. Go to staging.new.expensify.com
  2. Go to workspace settings.
  3. Go to Taxes.
  4. Tap Add rate.
  5. Tap Name.
  6. Enter a name.
  7. With keyboard still up, tap Save button.

Expected Result:

The name is saved.

Actual Result:

The keyboard is dismissed but app remains on the same page.

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

Add any screenshot/video evidence

Bug6473652_1715080173288.tax_save.mp4

View all open jobs on GitHub

@m-natarajan m-natarajan added DeployBlockerCash This issue or pull request should block deployment Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels May 7, 2024
Copy link

melvin-bot bot commented May 7, 2024

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

Copy link

melvin-bot bot commented May 7, 2024

Triggered auto assignment to @sonialiap (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.

@github-actions github-actions bot added Engineering Hourly KSv2 and removed Daily KSv2 labels May 7, 2024
Copy link
Contributor

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

@m-natarajan
Copy link
Author

@sonialiap FYI I haven't added the External label as I wasn't 100% sure about this issue. Please take a look and add the label if you agree it's a bug and can be handled by external contributors.

@m-natarajan
Copy link
Author

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

@Krishna2323
Copy link
Contributor

Krishna2323 commented May 7, 2024

Proposal

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

Taxes - Tapping on Save button does not save the tax name when keyboard is up

What is the root cause of that problem?

The TextInput is inside ScrollView and the child won't receive won't receive the tap when input is focused, only the text input will get blurred. This is due to keyboardShouldPersistTaps prop.

<ScrollView contentContainerStyle={[styles.flex1, styles.mh5, styles.mb5]}>
<View style={styles.flex1}>
<TextInput
// eslint-disable-next-line react/jsx-props-no-spreading

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

We need to pass keyboardShouldPersistTaps="always/handled" to ScrollView. Or we can add keyboardShouldPersistTaps="always/handled" in ScrollView as default and can accept a prop to change it.

What alternative solutions did you explore? (Optional)

@Krishna2323
Copy link
Contributor

I don't think this is a regression, previously the save button was hidden behind the keyboard and this PR fixed it and now we are able see the save button and click it.

@iwiznia
Copy link
Contributor

iwiznia commented May 7, 2024

It seems like that PR was not implemented right, since it should be saving the data when tapping on the save button, even with the keyboard open, otherwise the PR is kind of useless if you still need to tap twice. cc @dukenv0307

I agree though that this does not need to be a blocker.

@iwiznia iwiznia added Daily KSv2 Hourly KSv2 and removed Hourly KSv2 DeployBlockerCash This issue or pull request should block deployment Daily KSv2 labels May 7, 2024
@iwiznia
Copy link
Contributor

iwiznia commented May 7, 2024

Closing in favor of the OG issue #38497

@iwiznia iwiznia closed this as completed May 7, 2024
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 Hourly KSv2
Projects
None yet
Development

No branches or pull requests

4 participants