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-09-09] Home-Tapping disabled Send button with empty text removes focus and closes keypad #99573
Version Number: V9.4.61-1 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:#98336 Email or phone of affected tester (no customers):dreamnitethedragon+vegst@gmail.com Issue reported by: Applause Internal Team Bug source: Exploratory - Significant User Experience Deterioration Device used: Redmi note 10s android 13 App Component: User Settings
Action Performed:
Launch app
In Home, keep cursor on search box
Note box is outlined green active with keypad opened and since no text send button grey inactive
Tap grey send button
Note cursor disappear and box turned grey and keypad closed
Go to Concierge
Keep cursor on compose box
8.Note box is outlined green active with keypad opened and since no text send button grey inactive
Tap grey send button
Note nothing happens as there is no text in compose box - ( cursor stays, compose box remains active with green outline and keypad shown)
Expected Result:
Tapping the grey/inactive Send button when the compose/search box is empty should have consistent behavior across Home and Concierge. The button should remain inactive and should not dismiss the keyboard or remove focus.
Actual Result:
On Home, tapping the grey Send button with an empty search box dismisses the keyboard, removes the cursor, and changes the box outline from green to grey.
On Concierge, tapping the grey Send button with an empty compose box does nothing; the cursor remains visible, the box stays outlined green, and the keyboard remains open.
👋 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.
Classification: Frontend bug Causing PR: #98336 - "[Home Page] Add Concierge prompt box to home For You section" by @adamgrzybowski (High confidence) Related Issues: #94497 (feature request the PR implemented)
Recommendation: ROLL FORWARD
The whole Concierge prompt box is a new feature added by this PR, so a targeted 2-line fix is far safer and simpler than reverting the entire feature. The new Home prompt box reimplemented the Concierge Send button but omitted the focus-preservation that the canonical ComposerSendButton has — add it back so the disabled Send button is a no-op when empty (matching Concierge).
Assigned: @adamgrzybowski (PR author), @puneetlath and @ZhenjaHorbach (approving reviewers) — already assigned. Labels: No change. This is a frontend bug, so DeployBlockerCash (App deploy) correctly stays. No DeployBlocker (Web) label was present.
📋 Detailed Analysis
Evidence
The "Home search box" in the report is the new Concierge prompt box added to the Home "For You" section — a brand-new component src/pages/home/ForYouSection/ConciergePromptBox.tsx added entirely by PR [Home Page] Add Concierge prompt box to home For You section #98336 (confirmed via gh pr diff 98336; the file appears only as additions).
Reproducible on staging only, N/A in production — consistent with a new feature that does not exist in prod yet.
Both affected platforms are explained by the same omission: the web fix (Windows Chrome) is the missing onMouseDown preventDefault, and the native fix (Android App) is the missing focusable={false}. Both are present in the canonical Concierge Send button and both are absent in the new Home prompt box.
Verification
Affected file: src/pages/home/ForYouSection/ConciergePromptBox.tsx. The Send button wrapper is rendered without any focus preservation: ConciergePromptBox.tsx#L260-L270
onMouseDown={(e) => e.preventDefault()} on the wrapper View (line 43) — comment: "Keep focus on the composer when Send message is clicked."
focusable={false} (and accessible={false}) on the inner SubmitDraftButton (lines 63-66).
Both components render the same underlying SubmitDraftButton (definition); the difference is purely in the wrapper the caller provides.
The PR's own code comment says "Mirror ComposerSendButton" — but it mirrored only the justifyContentEnd layout, not the focus-preservation behavior.
Root Cause
When the input is empty, canSubmit is false, so onPress={submit} is already a no-op. The bug is not the press handler — it is that the Send button's press/tap still steals focus from the Composer:
On web (Windows Chrome), mousedown on the button blurs the focused Composer because the wrapper View lacks onMouseDown={(e) => e.preventDefault()}.
On Android native, the tap lands on a focusable button (no focusable={false}), which blurs the TextInput and dismisses the keyboard.
The net effect: focus is removed, the box outline flips green→grey, and the keyboard closes. Concierge avoids all of this via ComposerSendButton.
Exact fix location — src/pages/home/ForYouSection/ConciergePromptBox.tsx:261, the <View style={styles.justifyContentEnd}> wrapping SubmitDraftButton. Make it mirror ComposerSendButton:
Add onMouseDown={(e) => e.preventDefault()} to that wrapper View (line 261).
Pass focusable={false} (and accessible={false}) to the SubmitDraftButton (lines 262-269).
💡 Suggested AI code review rule
This bug is a recurring, mechanically detectable pattern (a Send/submit button placed next to a Composer/TextInput that reimplements the send affordance but drops the focus-preservation the canonical ComposerSendButton provides), so it may be worth a coding-standards rule so the AI reviewer catches the next one. Proposed for Expensify/App:
Rule:CLEAN-REACT-PATTERNS-10 — A send/submit button next to a text input must preserve the input's focus
Condition: When rendering SubmitDraftButton (or any interactive button) adjacent to a Composer/TextInput that should stay focused, wrap it like ComposerSendButton — onMouseDown={(e) => e.preventDefault()} on the wrapper and focusable={false} on the button — instead of re-implementing the button without them.
The full rule file, with the ❌/✅ code inline in App's coding-standards format, would go in Expensify/App itself. If it's worth adding, a maintainer can open it there as a draft PR.
changed the title [-]Home-Tapping disabled Send button with empty text removes focus and closes keypad[/-][+][Due for payment 2026-09-09] Home-Tapping disabled Send button with empty text removes focus and closes keypad[/+]on Sep 2, 2026
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.4.65-3 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-09-09. 🎊
The following checklist (instructions) will need to be completed before the issue can be closed. Please copy/paste the Contributor+ 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 Aug 26, 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/8ee22fb730799490e54fe3a9a9881c3acdf5d8acf9010f0c854060f2d6d60d48
melvin-bot commentedon Aug 26, 2026
You have been assigned to this deploy blocker because you recently merged this PR: #98336
melvin-bot commentedon Aug 26, 2026
@puneetlath @ZhenjaHorbach you have been assigned to this deploy blocker because you reviewed the offending PR: #98336
melvin-bot commentedon Aug 26, 2026
@adamgrzybowski you have been assigned to this deploy blocker because you authored the offending PR: #98336
melvin-bot commentedon Aug 26, 2026
💬 A slack conversation has been started in #expensify-open-source
github-actions commentedon Aug 26, 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 Aug 26, 2026
🔍 Investigation Summary
Classification: Frontend bug
Causing PR: #98336 - "[Home Page] Add Concierge prompt box to home For You section" by @adamgrzybowski (High confidence)
Related Issues: #94497 (feature request the PR implemented)
Recommendation: ROLL FORWARD
The whole Concierge prompt box is a new feature added by this PR, so a targeted 2-line fix is far safer and simpler than reverting the entire feature. The new Home prompt box reimplemented the Concierge Send button but omitted the focus-preservation that the canonical
ComposerSendButtonhas — add it back so the disabled Send button is a no-op when empty (matching Concierge).Assigned: @adamgrzybowski (PR author), @puneetlath and @ZhenjaHorbach (approving reviewers) — already assigned.
Labels: No change. This is a frontend bug, so
DeployBlockerCash(App deploy) correctly stays. NoDeployBlocker(Web) label was present.📋 Detailed Analysis
Evidence
src/pages/home/ForYouSection/ConciergePromptBox.tsxadded entirely by PR [Home Page] Add Concierge prompt box to home For You section #98336 (confirmed viagh pr diff 98336; the file appears only as additions).N/Ain production — consistent with a new feature that does not exist in prod yet.onMouseDownpreventDefault, and the native fix (Android App) is the missingfocusable={false}. Both are present in the canonical Concierge Send button and both are absent in the new Home prompt box.Verification
src/pages/home/ForYouSection/ConciergePromptBox.tsx. The Send button wrapper is rendered without any focus preservation:ConciergePromptBox.tsx#L260-L270
ComposerSendButton, which explicitly preserves focus:ComposerSendButton.tsx#L39-L70
onMouseDown={(e) => e.preventDefault()}on the wrapper View (line 43) — comment: "Keep focus on the composer when Send message is clicked."focusable={false}(andaccessible={false}) on the innerSubmitDraftButton(lines 63-66).SubmitDraftButton(definition); the difference is purely in the wrapper the caller provides.justifyContentEndlayout, not the focus-preservation behavior.Root Cause
When the input is empty,
canSubmitisfalse, soonPress={submit}is already a no-op. The bug is not the press handler — it is that the Send button's press/tap still steals focus from theComposer:onMouseDown={(e) => e.preventDefault()}.focusable={false}), which blurs the TextInput and dismisses the keyboard.The net effect: focus is removed, the box outline flips green→grey, and the keyboard closes. Concierge avoids all of this via
ComposerSendButton.Exact fix location —
src/pages/home/ForYouSection/ConciergePromptBox.tsx:261, the<View style={styles.justifyContentEnd}>wrappingSubmitDraftButton. Make it mirrorComposerSendButton:onMouseDown={(e) => e.preventDefault()}to that wrapper View (line 261).focusable={false}(andaccessible={false}) to theSubmitDraftButton(lines 262-269).💡 Suggested AI code review rule
This bug is a recurring, mechanically detectable pattern (a Send/submit button placed next to a
Composer/TextInputthat reimplements the send affordance but drops the focus-preservation the canonicalComposerSendButtonprovides), so it may be worth a coding-standards rule so the AI reviewer catches the next one. Proposed forExpensify/App:CLEAN-REACT-PATTERNS-10— A send/submit button next to a text input must preserve the input's focusSubmitDraftButton(or any interactive button) adjacent to aComposer/TextInputthat should stay focused, wrap it likeComposerSendButton—onMouseDown={(e) => e.preventDefault()}on the wrapper andfocusable={false}on the button — instead of re-implementing the button without them.<SubmitDraftButtonusages outsideComposerSendButton.tsxwhose enclosing JSX lacks bothonMouseDown={(e) => e.preventDefault()}andfocusable={false}.The full rule file, with the ❌/✅ code inline in App's coding-standards format, would go in
Expensify/Appitself. If it's worth adding, a maintainer can open it there as a draft PR.5 remaining items
[-]Home-Tapping disabled Send button with empty text removes focus and closes keypad[/-][+][Due for payment 2026-09-09] Home-Tapping disabled Send button with empty text removes focus and closes keypad[/+]melvin-bot commentedon Sep 2, 2026
@ZhenjaHorbach
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.4.65-3 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-09-09. 🎊
The following checklist (instructions) will need to be completed before the issue can be closed. Please copy/paste the Contributor+ 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]
ZhenjaHorbach commentedon Sep 2, 2026
@puneetlath @grgia
Let's close this!
melvin-bot commentedon Sep 7, 2026
@ZhenjaHorbach Huh... This is 4 days overdue. Who can take care of this?
ZhenjaHorbach commentedon Sep 8, 2026
@puneetlath @grgia
Let's close this!