You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Due for payment 2026-07-02] "Enter" Key does not work in "Exclude a fixed distance per claim" #94275
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:
Access staging.new.expensify.com and sign into beta user
Go to WS > Distance Rates > Setting > Exclude Commutes choose "Exclude a fixed distance per claim" and set a distance.
👋 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:
Identify the pull request that introduced this issue and revert it.
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.
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.
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
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:
@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]
Activity
applause-bot commentedon Jun 23, 2026
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
melvin-bot commentedon Jun 23, 2026
You have been assigned to this deploy blocker because you recently merged this PR: #92496
melvin-bot commentedon Jun 23, 2026
💬 A slack conversation has been started in #expensify-open-source
github-actions commentedon Jun 23, 2026
👋 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:
MelvinBot commentedon Jun 23, 2026
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:Savebutton in theFixedFooterhas nopressOnEnterprop, so it doesn't listen for the Enter keyboard shortcut.TextInputhas noonSubmitEditinghandler.Because the page uses a plain
TextInput+ standaloneButton(not aFormProvider, which would handle Enter automatically), there is no code path connecting the Enter key toonSave. Pressing Enter is a no-op by omission.Code references
Savebutton withoutpressOnEnter:src/pages/workspace/distanceRates/PolicyCommuterExclusionsPage.tsx:191-196TextInputwithoutonSubmitEditing:src/pages/workspace/distanceRates/PolicyCommuterExclusionsPage.tsx:114-129ButtonsupportspressOnEnter(triggersonPresson Enter):src/components/Button/index.tsx:100pressOnEnteron a footer Save button:src/pages/workspace/companyCards/assignCard/TransactionStartDateStep.tsx:134What changes do you think we should make in order to solve the problem?
Add
pressOnEnterto theSavebutton so the Enter key triggersonSave(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).onSavealready handles validation (distanceMustBePositive) and the disabled-method/no-change cases, so routing Enter through it is safe.Alternative considered
Adding
onSubmitEditing={onSave}to theTextInputwould also work, butpressOnEnteron 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.
chiragsalian commentedon Jun 23, 2026
Behind a beta, not a blocker. Reassigning to alberto since he's working on it.
9 remaining items
[-]"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"[/+]melvin-bot commentedon Jun 25, 2026
Reviewinglabel has been removed, please complete the "BugZero Checklist".melvin-bot commentedon Jun 25, 2026
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. 🎊
melvin-bot commentedon Jun 25, 2026
@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]
melvin-bot commentedon Jun 30, 2026
@Gonals Eep! 4 days overdue now. Issues have feelings too...
melvin-bot commentedon Jul 2, 2026
@Gonals Still overdue 6 days?! Let's take care of this!
melvin-bot commentedon Jul 3, 2026
@Gonals 6 days overdue. This is scarier than being forced to listen to Vogon poetry!
melvin-bot commentedon Jul 3, 2026
@Gonals Still overdue 6 days?! Let's take care of this!
melvin-bot commentedon Jul 6, 2026
@Gonals 10 days overdue. Is anyone even seeing these? Hello?
Gonals commentedon Jul 7, 2026
This is fixed