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
Version Number: 9.4.91-0 Reproducible in staging?: Yes Reproducible in production?: No If this was caught during regression testing, add the test name, ID and link from BrowserStack:#100735 Email or phone of affected tester (no customers):sjodjoijsonjoinj@gmail.com Issue reported by: Applause Internal Team Bug source: Exploratory - Significant User Experience Deterioration Device used: Mac 26.5 / Chrome App Component: Money Requests
Action Performed:
Precondition:
Create a text type report field with initial value.
Go to staging.new.expensify.com
Go to workspace chat.
Create an expense.
Open the report.
Click on the report field.
Clear it.
Press Enter.
Close the report and reopen.
Expected Result:
In Step 7, after pressing Enter on empty field, report will not scroll up.
In Step 8, user should not be able to save empty report field.
Actual Result:
In Step 7, after pressing Enter on empty field, report scrolls up when error message appears.
In Step 8, empty report field can be saved.
In Step 8, system message shows "changed Text to "" (previously "x")".
👋 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.
PR #100735 replaced the navigate-to-editor report field rows with brand new inline inputs and is the root cause of six separate deploy blockers on this checklist; reverting one feature PR is far safer than landing five or six independent targeted fixes under deploy pressure. If the feature must ship in this release instead, the minimum fix is in saveDraftValue (details below).
Assigned: @Gonals and @daledah (approving reviewers of #100735) — already assigned by melvin-bot. The PR author is @MelvinBot (bot), so there is no human author to add. Labels: No change. DeployBlockerCash stays (an App PR caused this and the fix is in Expensify/App). DeployBlocker was not present, so nothing to remove.
📋 Detailed Analysis
Evidence
Staging-only, and the repro steps are only possible on staging: before Show up to three report fields per row and edit them inline #100735, tapping a report field in the report view opened DynamicEditReportFieldPage in the RHP. The PR replaced MenuItemWithTopDescription with the new ReportFieldInlineInput, so "click the field, clear it, press Enter" only exists post-PR.
The reported system message changed Text to "" (previously "x") is the standard updateReportField optimistic action, which confirms the empty value really went through the normal save path rather than being a display glitch.
Verification
Files affected by the bug, all added or rewritten by #100735 (permalinks at 3ddc57b):
src/hooks/useSaveReportField.ts#L36-L76 — the shared save callback extracted by this PR; it guards the title field against an empty value but no other field
gh pr view 100735 --json files confirms ReportFieldInlineInput.tsx, MoneyRequestViewReportFields.tsx, useSaveReportField.ts and DynamicEditReportFieldPage.tsx are all in the diff.
Root Cause
(a) The empty value is saved. ReportFieldInlineInput decides whether a field may be emptied from deletable alone:
and for a deletable field it deliberately persists the empty string (#L97-L109):
if(trimmedValue===''){if(isRequired){setValidationError(translate('common.error.fieldRequired'));return;}// Clearing an optional field is a real change, so the empty value is saved.setValidationError('');setDraftValue('');setLastSavedValue('');onSaveValue('');return;}
That contradicts the app's own definition of a valid report field. getFieldViolation treats every empty report field as a fieldRequired violation, with no deletable check:
So the component saves a value it immediately re-renders as an error, which is exactly the pair of symptoms reported. Because the tester saw the value persist and the changed Text to "" system message, their custom text field must have deletable: true, i.e. it took the branch above — the isRequired branch cannot produce a save at all.
The old editor page gated on the same flag (DynamicEditReportFieldPage.tsx#L136 and #L169), so the underlying leniency is not new — but #100735 is what made it reachable with a single Enter keypress from the report, with the contradictory "is required" error rendered inline right underneath. Unverified inference: I could not confirm the server-side deletable value for a custom text field from the code alone (the optimistic create in ReportField.ts#L226 writes deletable: false), but the observed save proves it resolved to true for the tester's field.
(b) The report scrolls when the error appears.
The fields block is the ListHeaderComponent of the report's FlashList, which runs with maintainVisibleContentPosition enabled (MoneyRequestReportUnifiedList.tsx#L340). When the error line renders under the input the header grows by the height of that message; the list compensates to keep the first visible row anchored, and the content visibly jumps. Before #100735 the header was a static stack of menu rows whose violation text only changed while the user was away on the editor page, so it never resized under the user.
This is made worse by the deferred-error state in the same component (#L64-L86): hasBeenBlurred gates the violation message, and the render-phase sync block resets it to false whenever the saved value prop changes. Saving an empty value changes value, so the error can be shown, hidden and shown again across a few renders — each toggle is another header resize. (Inference: the exact number of toggles depends on Onyx update timing and I did not instrument it; the height-change-drives-scroll mechanism itself is solid.) Sibling blocker Android - Expense - Report auto scrolls to bottom after opening report field is the same family of problem.
Secondary defect noticed while reading the code (unverified inference): the text branch saves from both onSubmitEditing and onBlur (#L237-L242), and a single-line TextInput blurs on submit. Both handlers run in the same React batch, so the onBlur call still sees the pre-update lastSavedValue and its "skip if unchanged" guard cannot fire — one Enter can dispatch updateReportField twice.
If you roll forward instead of reverting
Minimum targeted change in ReportFieldInlineInput.saveDraftValue:
Reject an empty value for all report fields, not just !deletable ones — i.e. drop the if (isRequired) condition and always setValidationError(translate('common.error.fieldRequired')) and return, so the component never saves a value that getFieldViolation will immediately flag. (Alternatively, gate on the same helper rather than on deletable, so there is one definition of "required".)
On blur with an invalid draft, restore draftValue to the last saved value so the input does not sit on a value that was never persisted.
To stop the jump, reserve the error row's height (or keep the field's cell height fixed) so showing/hiding the message does not resize the list header, and stop resetting hasBeenBlurred on every value change.
That still leaves the other five blockers from this PR unfixed, which is why revert is the recommendation.
Activity
applause-bot commentedon Sep 21, 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/9e2a346147ff5e8809b07c234f7d4ce0247ff7a470c0a0b522bfe9d66b021dc5
melvin-bot commentedon Sep 21, 2026
You have been assigned to this deploy blocker because you recently merged this PR: #100735
github-actions commentedon Sep 21, 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:
melvin-bot commentedon Sep 21, 2026
@Gonals @daledah you have been assigned to this deploy blocker because you reviewed the offending PR: #100735
melvin-bot commentedon Sep 21, 2026
💬 A slack conversation has been started in #expensify-open-source
MelvinBot commentedon Sep 21, 2026
🔍 Investigation Summary
Classification: Frontend bug
Causing PR: Show up to three report fields per row and edit them inline (
Expensify/App#100735) - by @MelvinBot, reviewed/approved by @Gonals and @daledah (High confidence)Related Issues: the other five open blockers on this checklist are all attributed to the same PR — Android - Expense - Report field value jumps when navigating from one report to another, Android - Expense - Report auto scrolls to bottom after opening report field, Android - Expense - List dopdown auto closes after focusing on text field and opening list, Expense - Cursor appears briefly on list report field after clicking on it, Expense - No option to remove report field from report after deleting from workspace settings
Recommendation: REVERT
PR #100735 replaced the navigate-to-editor report field rows with brand new inline inputs and is the root cause of six separate deploy blockers on this checklist; reverting one feature PR is far safer than landing five or six independent targeted fixes under deploy pressure. If the feature must ship in this release instead, the minimum fix is in
saveDraftValue(details below).Assigned: @Gonals and @daledah (approving reviewers of #100735) — already assigned by melvin-bot. The PR author is @MelvinBot (bot), so there is no human author to add.
Labels: No change.
DeployBlockerCashstays (an App PR caused this and the fix is inExpensify/App).DeployBlockerwas not present, so nothing to remove.📋 Detailed Analysis
Evidence
DynamicEditReportFieldPagein the RHP. The PR replacedMenuItemWithTopDescriptionwith the newReportFieldInlineInput, so "click the field, clear it, press Enter" only exists post-PR.9.4.91-0.changed Text to "" (previously "x")is the standardupdateReportFieldoptimistic action, which confirms the empty value really went through the normal save path rather than being a display glitch.Verification
Files affected by the bug, all added or rewritten by #100735 (permalinks at
3ddc57b):src/components/MoneyRequestReportView/ReportFieldInlineInput.tsx#L88-L119—saveDraftValue, the new save/validation path (new file in this PR)src/components/MoneyRequestReportView/MoneyRequestViewReportFields.tsx#L67-L98— renders the inline input where the menu row used to besrc/hooks/useSaveReportField.ts#L36-L76— the shared save callback extracted by this PR; it guards the title field against an empty value but no other fieldsrc/components/MoneyRequestReportView/MoneyRequestReportUnifiedList.tsx#L322-L326and#L347-L378— the fields block is the list'sListHeaderComponentgh pr view 100735 --json filesconfirmsReportFieldInlineInput.tsx,MoneyRequestViewReportFields.tsx,useSaveReportField.tsandDynamicEditReportFieldPage.tsxare all in the diff.Root Cause
(a) The empty value is saved.
ReportFieldInlineInputdecides whether a field may be emptied fromdeletablealone:ReportFieldInlineInput.tsx#L84and for a
deletablefield it deliberately persists the empty string (#L97-L109):That contradicts the app's own definition of a valid report field.
getFieldViolationtreats every empty report field as afieldRequiredviolation, with nodeletablecheck:So the component saves a value it immediately re-renders as an error, which is exactly the pair of symptoms reported. Because the tester saw the value persist and the
changed Text to ""system message, their custom text field must havedeletable: true, i.e. it took the branch above — theisRequiredbranch cannot produce a save at all.The old editor page gated on the same flag (
DynamicEditReportFieldPage.tsx#L136and#L169), so the underlying leniency is not new — but #100735 is what made it reachable with a single Enter keypress from the report, with the contradictory "is required" error rendered inline right underneath. Unverified inference: I could not confirm the server-sidedeletablevalue for a custom text field from the code alone (the optimistic create inReportField.ts#L226writesdeletable: false), but the observed save proves it resolved totruefor the tester's field.(b) The report scrolls when the error appears.
The fields block is the
ListHeaderComponentof the report's FlashList, which runs withmaintainVisibleContentPositionenabled (MoneyRequestReportUnifiedList.tsx#L340). When the error line renders under the input the header grows by the height of that message; the list compensates to keep the first visible row anchored, and the content visibly jumps. Before #100735 the header was a static stack of menu rows whose violation text only changed while the user was away on the editor page, so it never resized under the user.This is made worse by the deferred-error state in the same component (
#L64-L86):hasBeenBlurredgates the violation message, and the render-phase sync block resets it tofalsewhenever the savedvalueprop changes. Saving an empty value changesvalue, so the error can be shown, hidden and shown again across a few renders — each toggle is another header resize. (Inference: the exact number of toggles depends on Onyx update timing and I did not instrument it; the height-change-drives-scroll mechanism itself is solid.) Sibling blocker Android - Expense - Report auto scrolls to bottom after opening report field is the same family of problem.Secondary defect noticed while reading the code (unverified inference): the text branch saves from both
onSubmitEditingandonBlur(#L237-L242), and a single-lineTextInputblurs on submit. Both handlers run in the same React batch, so theonBlurcall still sees the pre-updatelastSavedValueand its "skip if unchanged" guard cannot fire — one Enter can dispatchupdateReportFieldtwice.If you roll forward instead of reverting
Minimum targeted change in
ReportFieldInlineInput.saveDraftValue:!deletableones — i.e. drop theif (isRequired)condition and alwayssetValidationError(translate('common.error.fieldRequired'))and return, so the component never saves a value thatgetFieldViolationwill immediately flag. (Alternatively, gate on the same helper rather than ondeletable, so there is one definition of "required".)draftValueto the last saved value so the input does not sit on a value that was never persisted.hasBeenBlurredon everyvaluechange.That still leaves the other five blockers from this PR unfixed, which is why revert is the recommendation.
Gonals commentedon Sep 22, 2026
PR Reverted
IuliiaHerets commentedon Sep 22, 2026
Chrome / 9.4.91-1
Passed
bandicam.2026-09-22.13-40-35-508.mp4
melvin-bot commentedon Oct 13, 2026
If you are the assigned CME please investigate whether the linked PR caused a regression and leave a comment with the results.
If a regression has occurred and you are the assigned CM follow the instructions here.
If this regression could have been avoided please consider also proposing a recommendation to the PR checklist so that we can avoid it in the future.