Skip to content

[HOLD #69171] Workspace name input is not focused after dismissing the currency modal #69356

Closed

Description

@m-natarajan

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.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:

  1. Go to Workspace page
  2. Click + New workspace
  3. Observe that the workspace name input is focused
  4. Click the default currency option
  5. 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 evidence
Screen.Recording.2025-08-27.at.15.11.28.mov
Recording.1569.mp4

View all open jobs on GitHub

Activity

  1. added
    Daily
    Bug
    on Aug 27, 2025
  2. melvin-bot commented on Aug 27, 2025

    @melvin-bot

    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.

  3. m-natarajan commented on Aug 27, 2025

    @m-natarajan
    Author

    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:

    1. 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
    • pass onModalHide to CurrencyPicker

    onModalHide={() => {
                                        InteractionManager.runAfterInteractions(() => {
                                            inputRef.current?.focus();
                                        });
                                    }}
    
    1. Create a new page for the currency picker

    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.

  4. FitseTLT commented on Aug 27, 2025

    @FitseTLT
    Contributor

    Might be expected

  5. Eskalifer1 commented on Aug 27, 2025

    @Eskalifer1
    Contributor

    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

  6. mountiny commented on Aug 28, 2025

    @mountiny
    Contributor

    Ah yeah that might be though I am not sure if its listed in the issue from a quick look @jmusial ?

  7. melvin-bot commented on Sep 1, 2025

    @melvin-bot

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

  8. melvin-bot commented on Sep 3, 2025

    @melvin-bot

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

  9. dukenv0307 commented on Sep 5, 2025

    @dukenv0307
    Contributor

    If we don't have the plan to do it, I can help on this issue @mountiny @jmusial

  10. melvin-bot commented on Sep 5, 2025

    @melvin-bot

    @adelekennedy Now this issue is 8 days overdue. Are you sure this should be a Daily? Feel free to change it!

  11. 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
  12. 19 remaining items

  13. kadiealexander commented on Oct 29, 2025

    @kadiealexander
    Contributor

    Still on hold.

  14. 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
  15. kadiealexander commented on Dec 2, 2025

    @kadiealexander
    Contributor

    Still on hold!

  16. kadiealexander commented on Jan 6, 2026

    @kadiealexander
    Contributor

    @mountiny should this still be on hold? Does it need to stay open?

  17. mountiny commented on Jan 6, 2026

    @mountiny
    Contributor

    I think yes, we are not done in the linked issue @jmusial

  18. Eskalifer1 commented on Jan 6, 2026

    @Eskalifer1
    Contributor

    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.

  19. jmusial commented on Jan 7, 2026

    @jmusial
    Contributor

    Yup, retested just now and I cannot reproduce

    Screen.Recording.2026-01-07.at.16.22.13.mov
  20. mountiny commented on Jan 8, 2026

    @mountiny
    Contributor

    Perfect, thank you

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

Metadata

Metadata

Labels

BugMonthly

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions