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

Distance - Hitting Enter in waypoint editor does not save the address #37600

Closed
6 tasks done
kbecciv opened this issue Mar 1, 2024 · 13 comments
Closed
6 tasks done

Distance - Hitting Enter in waypoint editor does not save the address #37600

kbecciv opened this issue Mar 1, 2024 · 13 comments
Assignees
Labels
Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2

Comments

@kbecciv
Copy link

kbecciv commented Mar 1, 2024

If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!


Version Number: v1.4.46-0
Reproducible in staging?: y
Reproducible in production?: y
Issue reported by: Applause - Internal Team

Action Performed:

  1. Go to staging.new.expensify.com
  2. Go to FAB > Request money > Distance.
  3. Click Start.
  4. Enter the address and save it.
  5. Click Start again.
  6. Hit Enter.

Expected Result:

Hitting Enter will save the address and return to the distance request page,

Actual Result:

Hitting Enter only closes the address list and does not save the address.

Workaround:

Can the user still use Expensify without this being fixed? Have you informed them of the workaround?

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

Bug6398246_1709298059189.bandicam_2024-03-01_20-58-27-324.mp4

View all open jobs on GitHub

@kbecciv kbecciv added Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels Mar 1, 2024
Copy link

melvin-bot bot commented Mar 1, 2024

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

@kbecciv
Copy link
Author

kbecciv commented Mar 1, 2024

@kevinksullivan 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

@kbecciv
Copy link
Author

kbecciv commented Mar 1, 2024

We think that this bug might be related to #wave5-free-submitters
CC @dylanexpensify

@Krishna2323
Copy link
Contributor

Krishna2323 commented Mar 1, 2024

Proposal

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

Distance - Hitting Enter in waypoint editor does not save the address

What is the root cause of that problem?

We don't pass disablePressOnEnter={false} to FormProvider inside IOURequestStepWaypoint that's why press on enter is disabled.

submitButtonText={translate('common.save')}

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

Pass disablePressOnEnter={false} to FormProvider inside IOURequestStepWaypoint. AddressSearch component is used in several places so will ensure we have correct behaviour at every place.

Result

@allgandalf
Copy link
Contributor

allgandalf commented Mar 2, 2024

Proposal

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

Hitting Enter in waypoint editor does not save the address

What is the root cause of that problem?

If we don't have disablePressOnEnter prop passed in FormProvider, then by default it is set to true

disablePressOnEnter = true,

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

We need to set the default value to false in FormWrapper

Note: IMO, i think this approach would be better as i have recently seen a lot of bugs which complain on not able to save when hitting enter, so solving this in the main component sounds logical and will address future bugs as well :) This can save us a lot of time and money as well

@melvin-bot melvin-bot bot added the Overdue label Mar 4, 2024
Copy link

melvin-bot bot commented Mar 4, 2024

@kevinksullivan Whoops! This issue is 2 days overdue. Let's get this updated quick!

Copy link

melvin-bot bot commented Mar 6, 2024

@kevinksullivan Eep! 4 days overdue now. Issues have feelings too...

Copy link

melvin-bot bot commented Mar 8, 2024

@kevinksullivan 6 days overdue. This is scarier than being forced to listen to Vogon poetry!

Copy link

melvin-bot bot commented Mar 12, 2024

@kevinksullivan 10 days overdue. I'm getting more depressed than Marvin.

Copy link

melvin-bot bot commented Mar 14, 2024

@kevinksullivan 12 days overdue. Walking. Toward. The. Light...

Copy link

melvin-bot bot commented Mar 15, 2024

@kevinksullivan this issue was created 2 weeks ago. Are we close to a solution? Let's make sure we're treating this as a top priority. Don't hesitate to create a thread in #expensify-open-source to align faster in real time. Thanks!

@kevinksullivan
Copy link
Contributor

Closing, since I am seeing this behavior for other addresses, like in the profile.

@Krishna2323
Copy link
Contributor

@kevinksullivan, I think its not consistent with other inputs and the solution is not too complex.

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. Daily KSv2
Projects
None yet
Development

No branches or pull requests

4 participants