Skip to content

[HOLD for payment 2022-04-06] Enter/return doesn't work when the button has options - reported by @Tushu17 #7964

Closed

Description

@mvtglobally

If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!


Action Performed:

  1. Go to chat of a user who have a paypal account.
  2. Select Actions -> Send money -> enter amount > Hit Next
  3. Pick any user
  4. Press Enter/Return or "Go" on mobile keyboard

Expected Result:

Pressing Enter/Return should send money like it does in the request money.

Actual Result:

Pressing Enter/Return Closes the Keyboard or does nothing

Workaround:

unknown

Platform:

Where is this issue occurring?

  • Web
  • iOS
  • Android
  • Desktop App
  • Mobile Web

Version Number: 1.1.41-0
Reproducible in staging?: Y
Reproducible in production?: Y
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos: Any additional supporting documentation

screen-rec.mp4

Expensify/Expensify Issue URL:
Issue reported by: @Tushu17
Slack conversation: https://expensify.slack.com/archives/C01GTK53T8Q/p1644833714384489

View all open jobs on GitHub

Activity

  1. MelvinBot commented on Mar 2, 2022

    @MelvinBot
    Contributor

    Triggered auto assignment to @deetergp (Engineering), see https://stackoverflow.com/c/expensify/questions/4319 for more details.

  2. sobitneupane commented on Mar 2, 2022

    @sobitneupane
    Contributor

    Proposal
    Addition of pressOnEnter in

    <Button
    success
    onPress={props.onButtonPress}
    text={props.buttonText}
    isLoading={props.isLoading}
    shouldRemoveRightBorderRadius
    style={[styles.flex1]}
    />

    <Button
        success
        onPress={props.onButtonPress}
        text={props.buttonText}
        isLoading={props.isLoading}
        shouldRemoveRightBorderRadius
        style={[styles.flex1]}
    +   pressOnEnter
    />

    solves the issue.

  3. Tushu17 commented on Mar 2, 2022

    @Tushu17
    Contributor

    Proposal

    Proposing a solution as I reported this issue

    We aren't passing pressOnEnter to the Button that we use in ButtonWithDropdown as we can see below -

    const ButtonWithDropdown = props => (
    <View style={[styles.flexRow, styles.justifyContentBetween, styles.alignItemsCenter]}>
    <Button
    success
    onPress={props.onButtonPress}
    text={props.buttonText}
    isLoading={props.isLoading}
    shouldRemoveRightBorderRadius
    style={[styles.flex1]}
    />

    So by passing pressOnEnter to the Button which is on line 32 we can fix it.

  4. added
    ExternalAdded to denote the issue can be worked on by a contributor
    on Mar 2, 2022
  5. MelvinBot commented on Mar 2, 2022

    @MelvinBot
    Contributor

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

  6. jliexpensify commented on Mar 3, 2022

    @jliexpensify
    Contributor

    @deetergp - should go to Upworks right? If so, I'll assign myself again and make a job.

  7. self-assigned this
    on Mar 3, 2022
  8. 20 remaining items

  9. jliexpensify commented on Mar 11, 2022

    @jliexpensify
    Contributor

    Adding @kadiealexander to help keep an eye on my GH's as I'll be OOO next week

  10. MelvinBot commented on Mar 11, 2022

    @MelvinBot
    Contributor

    📣 @sobitneupane You have been assigned to this job by @jliexpensify!
    Please apply to this job in Upwork and leave a comment on the Github issue letting us know when we can expect a PR to be ready for review 🧑‍💻
    Keep in mind: Code of Conduct | Contributing 📖

  11. changed the title [-]Enter/return doesn't work when the button has options - reported by @Tushu17[/-] [+][HOLD for payment 2022-04-06] Enter/return doesn't work when the button has options - reported by @Tushu17[/+] on Apr 1, 2022
  12. kadiealexander commented on Apr 4, 2022

    @kadiealexander
    Contributor

    @jliexpensify leaving you assigned, please make payment on this one on the 6th/7th, as I'll be away. Thanks! 🎉

  13. jliexpensify commented on Apr 7, 2022

    @jliexpensify
    Contributor

    There's an iOS regression - if this isn't a big deal, I can arrange payment cc @rushatgabhane @NikkiWines

  14. rushatgabhane commented on Apr 7, 2022

    @rushatgabhane
    Member

    @jliexpensify could you please link the iOS regression. I'm not able to find it 😅

  15. jliexpensify commented on Apr 8, 2022

    @jliexpensify
    Contributor

    @rushatgabhane - apologies: I used the wrong terminology here! I did see that iOS failed to deploy - #8206 - which is what I meant.

    If that's not an issue, I'll pay!

  16. jliexpensify commented on Apr 11, 2022

    @jliexpensify
    Contributor

    Asking in Slack here: https://expensify.slack.com/archives/C01SKUP7QR0/p1649636370757839

    Hoping to get an answer in the next 24 hours so I can issue payment.

  17. jliexpensify commented on Apr 11, 2022

    @jliexpensify
    Contributor

    Sorry for the delay - confirmed that it's all good to proceed with payment, and will do shortly.

  18. jliexpensify commented on Apr 11, 2022

    @jliexpensify
    Contributor

    Paid @Tushu17 and @rushatgabhane . Just awaiting @sobitneupane to accept and will pay + close job.

  19. sobitneupane commented on Apr 12, 2022

    @sobitneupane
    Contributor

    Just awaiting @sobitneupane to accept and will pay + close job.

    Accepted the offer.

  20. jliexpensify commented on Apr 12, 2022

    @jliexpensify
    Contributor

    Paid, and closed job in Upworks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

EngineeringExternalAdded to denote the issue can be worked on by a contributorReviewingHas a PR in reviewWeeklyKSv2

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions