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
[HOLD #69171] Workspace name input is not focused after dismissing the currency modal #69356
Version Number: 9.1.99-5 Reproducible in staging?: Y Reproducible in production?: Y If this was caught during regression testing, add the test name, ID and link from TestRail: Email or phone of affected tester (no customers): Logs:https://stackoverflow.com/c/expensify/questions/4856 Expensify/Expensify Issue URL: Issue reported by:@dukenv0307 Slack conversation (hyperlinked to channel name): #Expensify Bugs
Action Performed:
Go to Workspace page
Click + New workspace
Observe that the workspace name input is focused
Click the default currency option
Click the back button to close the currency picker
Expected Result:
The workspace name input should be focused again
Actual Result:
The workspace name input isn't focused
Workaround:
Unknown
Platforms:
Select the officially supported platforms where the issue was reproduced:
Android: App
Android: mWeb Chrome
iOS: App
iOS: mWeb Safari
iOS: mWeb Chrome
Windows: Chrome
MacOS: Chrome / Safari
MacOS: Desktop
Platforms Tested:
On which of our officially supported platforms was this issue tested:
Android: App
Android: mWeb Chrome
iOS: App
iOS: mWeb Safari
iOS: mWeb Chrome
Windows: Chrome
MacOS: Chrome / Safari
MacOS: Desktop
Screenshots/Videos
Add any screenshot/video evidenceScreen.Recording.2025-08-27.at.15.11.28.movRecording.1569.mp4
Please re-state the problem that we are trying to solve in this issue.
Workspace name input is not focused after dismissing the currency modal
What is the root cause of that problem?
In WorkspaceConfirmationForm, we already used useAutoFocusInput, and it works if users open the confirmation page
When users open the currency picker, the modal will be shown. useFocusEffect hook is not triggered when users dismiss the modal, so the input is not focused
What changes do you think we should make in order to solve the problem?
We have 2 approaches to solve this issue:
Focus the input when the modal is dismissed. We already used this approach in the ReportActionCompose
In CurrencyPicker, define the new props onModalHide and call it when the modal hides
What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?
UI issue
What alternative solutions did you explore? (Optional)
We can use modal.willAlertModalBecomeVisible to detect whether the modal is closed, then re-focus the input. We can do it in WorkspaceConfirmationForm or useAutoFocusInput (this requires careful testing because this hook is used in many places)
Reminder: Please use plain English, be brief and avoid jargon. Feel free to use images, charts or pseudo-code if necessary. Do not post large multi-line diffs or write walls of text. Do not create PRs unless you have been hired for this job.
changed the title [-]Workspace name input is not focused after dismissing the currency modal[/-][+][HOLD https://github.com/Expensify/App/issues/69171] Workspace name input is not focused after dismissing the currency modal[/+]on Sep 8, 2025
changed the title [-][HOLD https://github.com/Expensify/App/issues/69171] Workspace name input is not focused after dismissing the currency modal[/-][+][HOLD #69171] Workspace name input is not focused after dismissing the currency modal[/+]on Dec 2, 2025
Activity
melvin-bot commentedon Aug 27, 2025
Triggered auto assignment to @adelekennedy (
Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details. Please add this bug to a GH project, as outlined in the SO.m-natarajan commentedon Aug 27, 2025
Proposal by @dukenv0307
Proposal
Please re-state the problem that we are trying to solve in this issue.
Workspace name input is not focused after dismissing the currency modal
What is the root cause of that problem?
In WorkspaceConfirmationForm, we already used useAutoFocusInput, and it works if users open the confirmation page
When users open the currency picker, the modal will be shown. useFocusEffect hook is not triggered when users dismiss the modal, so the input is not focused
What changes do you think we should make in order to solve the problem?
We have 2 approaches to solve this issue:
onModalHideand call it when the modal hidesonModalHidetoCurrencyPickerApp/src/components/WorkspaceConfirmationForm.tsx
Line 194 in 83e3549
What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?
UI issue
What alternative solutions did you explore? (Optional)
We can use
modal.willAlertModalBecomeVisibleto detect whether the modal is closed, then re-focus the input. We can do it inWorkspaceConfirmationFormoruseAutoFocusInput(this requires careful testing because this hook is used in many places)Reminder: Please use plain English, be brief and avoid jargon. Feel free to use images, charts or pseudo-code if necessary. Do not post large multi-line diffs or write walls of text. Do not create PRs unless you have been hired for this job.
FitseTLT commentedon Aug 27, 2025
Might be expected
Eskalifer1 commentedon Aug 27, 2025
As far as I know, this page will be reworked into a separate route based on this comment.. After this change this bug will be fixed
In this PR: #69171
cc: @mountiny for clarification
mountiny commentedon Aug 28, 2025
Ah yeah that might be though I am not sure if its listed in the issue from a quick look @jmusial ?
melvin-bot commentedon Sep 1, 2025
@adelekennedy Eep! 4 days overdue now. Issues have feelings too...
melvin-bot commentedon Sep 3, 2025
@adelekennedy Still overdue 6 days?! Let's take care of this!
dukenv0307 commentedon Sep 5, 2025
If we don't have the plan to do it, I can help on this issue @mountiny @jmusial
melvin-bot commentedon Sep 5, 2025
@adelekennedy Now this issue is 8 days overdue. Are you sure this should be a Daily? Feel free to change it!
[-]Workspace name input is not focused after dismissing the currency modal[/-][+][HOLD https://github.com/Expensify/App/issues/69171] Workspace name input is not focused after dismissing the currency modal[/+]19 remaining items
kadiealexander commentedon Oct 29, 2025
Still on hold.
[-][HOLD https://github.com/Expensify/App/issues/69171] Workspace name input is not focused after dismissing the currency modal[/-][+][HOLD #69171] Workspace name input is not focused after dismissing the currency modal[/+]kadiealexander commentedon Dec 2, 2025
Still on hold!
kadiealexander commentedon Jan 6, 2026
@mountiny should this still be on hold? Does it need to stay open?
mountiny commentedon Jan 6, 2026
I think yes, we are not done in the linked issue @jmusial
Eskalifer1 commentedon Jan 6, 2026
Hi @mountiny I think we can close this issue, as this modal window was rewritten to a separate page a long time ago and the bug does not reproduce.
jmusial commentedon Jan 7, 2026
Yup, retested just now and I cannot reproduce
Screen.Recording.2026-01-07.at.16.22.13.mov
mountiny commentedon Jan 8, 2026
Perfect, thank you