Skip to content

[Due for payment 2026-07-02] "Enter" Key does not work in "Exclude a fixed distance per claim" #94275

Closed

Description

@applause-bot

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.4.17-0
Reproducible in staging?: Yes
Reproducible in production?: N/A - new feature, doesn't exist in prod
If this was caught during regression testing, add the test name, ID and link from BrowserStack: #92496
Email or phone of affected tester (no customers): applausetester+en@applause.expensifail.com
Issue reported by: Applause Internal Team
Bug source: Pull Request QA execution
Device used: Macbook Pro 2023 / Tahoe 26.4.1
App Component: Workspace Settings

Action Performed:

  1. Access staging.new.expensify.com and sign into beta user
  2. Go to WS > Distance Rates > Setting > Exclude Commutes choose "Exclude a fixed distance per claim" and set a distance.
  3. Tap Enter on Keyboard

Expected Result:

Value is entered

Actual Result:

Nothing happnes

Workaround:

Unknown

Platforms:

  • Android: App
  • Android: mWeb Chrome
  • iOS: App
  • iOS: mWeb Safari
  • iOS: mWeb Chrome
  • Windows: Chrome
  • MacOS: Chrome Safari

Screenshots/Videos

Bug7188126_1782174857429.User_cant_tap_Enter.mp4

View all open jobs on GitHub

Applause Internal Information
Exported by: Julia Ponikarchuk
Bug ID: 7188126

Activity

  1. added
    DeployBlockerCash
    on Jun 23, 2026
  2. applause-bot commented on Jun 23, 2026

    @applause-bot
    Author

    While Applause doesn't embed attachments for this bug, here are the links for quick view:
    https://platform.applause.com/services/links/v1/external/f9aec82546a98d2767e85c6835e8889463dee17472e202122fdc563588c57f49

  3. added
    Bug
    on Jun 23, 2026
  4. melvin-bot commented on Jun 23, 2026

    @melvin-bot

    You have been assigned to this deploy blocker because you recently merged this PR: #92496

  5. melvin-bot commented on Jun 23, 2026

    @melvin-bot

    💬 A slack conversation has been started in #expensify-open-source

  6. github-actions commented on Jun 23, 2026

    @github-actions
    Contributor

    👋 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.
  7. MelvinBot commented on Jun 23, 2026

    @MelvinBot
    Contributor

    Proposal

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

    On WS → Distance Rates → Settings → Exclude Commutes, when you choose "Exclude a fixed distance per claim", type a distance, and press Enter, nothing happens. The value should be submitted (same as tapping Save).

    What is the root cause of that problem?

    The new PolicyCommuterExclusionsPage (added in #92496) never wires the Enter key to a submit action:

    • The Save button in the FixedFooter has no pressOnEnter prop, so it doesn't listen for the Enter keyboard shortcut.
    • The fixed-distance TextInput has no onSubmitEditing handler.

    Because the page uses a plain TextInput + standalone Button (not a FormProvider, which would handle Enter automatically), there is no code path connecting the Enter key to onSave. Pressing Enter is a no-op by omission.

    Code references

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

    Add pressOnEnter to the Save button so the Enter key triggers onSave (the same handler that validates the input and saves):

     <Button
         success
         large
    +    pressOnEnter
         text={translate('common.save')}
         onPress={onSave}
     />

    This matches the established convention across other workspace settings pages (e.g. TransactionStartDateStep, WorkspaceCompanyCardEditTransactionStartDatePage). onSave already handles validation (distanceMustBePositive) and the disabled-method/no-change cases, so routing Enter through it is safe.

    Alternative considered

    Adding onSubmitEditing={onSave} to the TextInput would also work, but pressOnEnter on the Save button is the more consistent codebase pattern and also covers the case where focus is on the selection list rather than the input.

    Confidence: High

    The fix is local to the App repo (frontend only) and matches an existing, widely-used pattern.


    Next Steps for Contributor+ team:
    To accept: @MelvinBot implement [this](https://github.com/Expensify/App/issues/94275) to create a draft PR.
    To refine: @MelvinBot <your feedback>
    To reject: Explain why you are rejecting Melvin's proposal.

  8. chiragsalian commented on Jun 23, 2026

    @chiragsalian
    Contributor

    Behind a beta, not a blocker. Reassigning to alberto since he's working on it.

  9. added
    Daily
    and removed
    DeployBlockerCash
    Hourly
    on Jun 23, 2026
  10. 9 remaining items

  11. changed the title [-]"Enter" Key does not work in "Exclude a fixed distance per claim"[/-] [+][Due for payment 2026-07-02] "Enter" Key does not work in "Exclude a fixed distance per claim"[/+] on Jun 25, 2026
  12. melvin-bot commented on Jun 25, 2026

    @melvin-bot

    Reviewing label has been removed, please complete the "BugZero Checklist".

  13. melvin-bot commented on Jun 25, 2026

    @melvin-bot

    The solution for this issue has been 🚀 deployed to production 🚀 in version 9.4.19-5 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue:

    If no regressions arise, payment will be issued on 2026-07-02. 🎊

  14. melvin-bot commented on Jun 25, 2026

    @melvin-bot

    @Gonals The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed. Please copy/paste the BugZero Checklist from here into a new comment on this GH and complete it. If you have the K2 extension, you can simply click: [this button]. If no checklist is needed for this issue, you can click: [no checklist button]

  15. melvin-bot commented on Jun 30, 2026

    @melvin-bot

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

  16. melvin-bot commented on Jul 2, 2026

    @melvin-bot

    @Gonals Still overdue 6 days?! Let's take care of this!

  17. melvin-bot commented on Jul 3, 2026

    @melvin-bot

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

  18. melvin-bot commented on Jul 3, 2026

    @melvin-bot

    @Gonals Still overdue 6 days?! Let's take care of this!

  19. melvin-bot commented on Jul 6, 2026

    @melvin-bot

    @Gonals 10 days overdue. Is anyone even seeing these? Hello?

  20. Gonals commented on Jul 7, 2026

    @Gonals
    Contributor

    This is fixed

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

Metadata

Metadata

Assignees

Labels

BugDailyEngineering

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions