App icon indicating copy to clipboard operation
App copied to clipboard

[$1000] Input doesn't keep focusing

Open kavimuru opened this issue 1 year ago • 17 comments

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


Action Performed:

  1. open workspace -> connect manually -> go to first page of "company information"
  2. Input any numbers and tap "Enter" from keyboard

Expected results:

Input should keep focusing

Actual results:

Input doesn't keep focusing

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 / Chrome
  • [ ] iOS / native
  • [ ] iOS / Safari
  • [x] MacOS / Chrome / Safari
  • [ ] MacOS / Desktop

Version Number: 1.3.0 Reproducible in staging?: y Reproducible in production?: y 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 Notes/Photos/Videos: Any additional supporting documentation

screen-capture.webm

https://user-images.githubusercontent.com/43996225/232606810-9f7ee7a4-8c98-4622-b320-b34e0ff18d4d.mp4

Expensify/Expensify Issue URL: Issue reported by: @MahmudjonToraqulov Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1681361020250409

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~0132929684257a053c
  • Upwork Job ID: 1650632490420547584
  • Last Price Increase: 2023-04-24

kavimuru avatar Apr 17 '23 20:04 kavimuru

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

MelvinBot avatar Apr 17 '23 20:04 MelvinBot

Bug0 Triage Checklist (Main S/O)

  • [ ] This "bug" occurs on a supported platform (ensure Platforms in OP are ✅)
  • [ ] This bug is not a duplicate report (check E/App issues and #expensify-bugs)
    • If it is, comment with a link to the original report, close the issue and add any novel details to the original issue instead
  • [ ] This bug is reproducible using the reproduction steps in the OP. S/O
    • If the reproduction steps are clear and you're unable to reproduce the bug, check with the reporter and QA first, then close the issue.
    • If the reproduction steps aren't clear and you determine the correct steps, please update the OP.
  • [ ] This issue is filled out as thoroughly and clearly as possible
    • Pay special attention to the title, results, platforms where the bug occurs, and if the bug happens on staging/production.
  • [ ] I have reviewed and subscribed to the linked Slack conversation to ensure Slack/Github stay in sync

MelvinBot avatar Apr 17 '23 20:04 MelvinBot

I think this issue is related to #15992 @bondydaa should I put this on hold and add to the tracking issue?

adelekennedy avatar Apr 20 '23 18:04 adelekennedy

No I don't think so, https://github.com/Expensify/App/issues/15992 is specificly about the compose component which is the main text box you type in to for chats. this has to do with an input on a different component and is it's own thing.

bondydaa avatar Apr 20 '23 21:04 bondydaa

@adelekennedy Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!

MelvinBot avatar Apr 24 '23 10:04 MelvinBot

Job added to Upwork: https://www.upwork.com/jobs/~0132929684257a053c

MelvinBot avatar Apr 24 '23 22:04 MelvinBot

Current assignee @adelekennedy is eligible for the External assigner, not assigning anyone new.

MelvinBot avatar Apr 24 '23 22:04 MelvinBot

Moving to External!

adelekennedy avatar Apr 24 '23 22:04 adelekennedy

Triggered auto assignment to Contributor-plus team member for initial proposal review - @parasharrajat (External)

MelvinBot avatar Apr 24 '23 22:04 MelvinBot

Triggered auto assignment to @grgia (External), see https://stackoverflow.com/c/expensify/questions/7972 for more details.

MelvinBot avatar Apr 24 '23 22:04 MelvinBot

Proposal

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

Input doesn't keep focusing when press enter key

What is the root cause of that problem?

By default, when we press enter key in a input field, it will submit the form. In react-native, it sets blurOnSubmit to true by default https://reactnative.dev/docs/textinput#bluronsubmit

=> That is the root cause why submit form, the input will be blur

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

We can easily fix by set blurOnSubmit prop of those TextInput to false in those LOC

hoangzinh avatar Apr 24 '23 23:04 hoangzinh

I don't feel strongly to change this. What do you think about it @grgia?

parasharrajat avatar Apr 24 '23 23:04 parasharrajat

@MahmudjonToraqulov This part is documented in the contributing guidelines https://github.com/Expensify/App/blob/main/contributingGuides/CONTRIBUTING.md#proposing-a-job-that-expensify-hasnt-posted points 8 and 9.

In short, when this issue is solved, you will be paid reporting bonus as well. If this issue is not solved or closed, then there will not be any payment for reporting.

parasharrajat avatar Apr 25 '23 06:04 parasharrajat

@grgia @parasharrajat looking back at this I don't feel that strongly that this is a real problem, any opinions if we should move forward with it or close for now?

adelekennedy avatar Apr 27 '23 16:04 adelekennedy

I asked the same question https://github.com/Expensify/App/issues/17534#issuecomment-1520965563

parasharrajat avatar Apr 27 '23 16:04 parasharrajat

@adelekennedy

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

  • There are two text inputs in this form one for routing number and other for account number.
  • I would create reference for the second text input so on pressing enter on the first text field, i would shift focus to second text field.
  • In the second text field on pressing enter would focus on itself by setting blurOnSubmit to false.
  • These points would resolve and cater to our needs.

kuluruvineeth avatar Apr 28 '23 06:04 kuluruvineeth

@adelekennedy @parasharrajat I agree, we can do nothing. Closing now! Feel free to reopen if you changed your mind

grgia avatar May 01 '23 12:05 grgia