Skip to content

[$250] Expense - Expense RHP composer does not not auto focus when opened from report RHP #79860

Closed

Description

@mitarachim

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.3.4-0
Reproducible in staging?: Yes
Reproducible in production?: Yes
If this was caught during regression testing, add the test name, ID and link from BrowserStack: #77657
Email or phone of affected tester (no customers): sdsdjnoisjsoidjois@gmail.com
Issue reported by: Applause Internal Team
Bug source: Exploratory - Significant User Experience Deterioration
Device used: Mac 26.1 / Chrome
App Component: Money Requests

Action Performed:

  1. Go to staging.new.expensify.com
  2. Go to workspace chat.
  3. Create two expenses.
  4. Open the expense report.
  5. Open any expense.

Expected Result:

Expense RHP composer will auto focus.

Actual Result:

Expense RHP composer does not auto focus when opened from report RHP.

This issue does not happen when expense RHP is opened from central pane report.

Workaround:

Unknown

Platforms:

  • Android: App
  • Android: mWeb Chrome
  • iOS: App
  • iOS: mWeb Safari
  • iOS: mWeb Chrome
  • Windows: Chrome
  • MacOS: Chrome / Safari

Screenshots/Videos

Image
Bug7051671_1768636732267.4.mp4

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~022014478928592061964
  • Upwork Job ID: 2014478928592061964
  • Last Price Increase: 2026-01-29
Issue OwnerCurrent Issue Owner: @annaweber830

Activity

  1. added
    BugSomething is broken. Auto assigns a BugZero manager.
    on Jan 19, 2026
  2. melvin-bot commented on Jan 19, 2026

    @melvin-bot

    Triggered auto assignment to @stephanieelliott (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. annaweber830 commented on Jan 19, 2026

    @annaweber830
    Contributor

    Proposal

    Please re-state the problem that we are trying to solve in this issue.

    When opening an expense in the Expense RHP from the report RHP, the composer does not auto-focus (even though it should). This does not happen when opening the same Expense RHP from the central pane report.

    What is the root cause of that problem?

    Auto-focus is explicitly blocked in the stacked-RHP case. In ComposerWithSuggestions, auto-focus on SCREENS.RIGHT_MODAL.SEARCH_REPORT is disabled whenever another (super wide) RHP is displayed underneath (to avoid animation/layout jank). The “report RHP → expense RHP” flow creates exactly that stacked scenario, so the composer never focuses.

    What changes do you think we should make in order to solve the problem?

    const shouldAutoFocus =
            (shouldFocusInputOnScreenFocus || !!draftComment) && shouldShowComposeInput && areAllModalsHidden() && isFocused && !didHideComposerInput;
    

    const focus = useCallback((shouldDelay = false) => {
    focusComposerWithDelay(textInputRef.current)(shouldDelay);
    }, []);

    const focus = useCallback((shouldDelay = false) => {
            // If we're stacked above another RHP, wait for the transition to complete before focusing.
            const delay = shouldDelayAutoFocus ? CONST.ANIMATED_TRANSITION : CONST.COMPOSER_FOCUS_DELAY;
            focusComposerWithDelay(textInputRef.current, delay)(shouldDelay);
        }, [shouldDelayAutoFocus]);
    

    What alternative solutions did you explore? (Optional)

  4. added
    ExternalAdded to denote the issue can be worked on by a contributor
    on Jan 22, 2026
  5. changed the title [-]Expense - Expense RHP composer does not not auto focus when opened from report RHP[/-] [+][$250] Expense - Expense RHP composer does not not auto focus when opened from report RHP[/+] on Jan 22, 2026
  6. melvin-bot commented on Jan 22, 2026

    @melvin-bot
  7. added
    Help WantedApply this label when an issue is open to proposals by contributors
    on Jan 22, 2026
  8. melvin-bot commented on Jan 22, 2026

    @melvin-bot

    Triggered auto assignment to Contributor-plus team member for initial proposal review - @brunovjk (External)

  9. melvin-bot commented on Jan 27, 2026

    @melvin-bot

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

  10. 28 remaining items

  11. added
    Awaiting PaymentAuto-added when associated PR is deployed to production
    and removed
    ReviewingHas a PR in review
    on Mar 9, 2026
  12. melvin-bot commented on Mar 9, 2026

    @melvin-bot

    Current assignee @stephanieelliott is eligible for the Awaiting Payment assigner, not assigning anyone new.

  13. mallenexpensify commented on Mar 9, 2026

    @mallenexpensify
    Contributor

    Payment Summary

    Contributor: @annaweber830 paid $250 via Upwork
    Contributor+: @brunovjk due $250 via NewDot

    @annaweber830 can you please accept the job below? Please reply here and tag me once you have.
    https://www.upwork.com/jobs/~022031053590728663848

    ^ Test case created

  14. melvin-bot commented on Mar 9, 2026

    @melvin-bot

    @annaweber830 Whoops! This issue is 2 days overdue. Let's get this updated quick!

  15. melvin-bot commented on Mar 9, 2026

    @melvin-bot

    @annaweber830 Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!

  16. brunovjk commented on Mar 10, 2026

    @brunovjk
    Contributor

    Requested in ND.

  17. twisterdotcom commented on Mar 10, 2026

    @twisterdotcom
    Contributor

    @brunovjk has submitted payment for this report on ND here.

    SO: https://stackoverflowteams.com/c/expensify/questions/7582

    Zapier Logs Run ID: 00040eee-dcfd-a2c1-aa8a-a732313555c4
  18. melvin-bot commented on Mar 11, 2026

    @melvin-bot

    @annaweber830 Huh... This is 4 days overdue. Who can take care of this?

  19. melvin-bot commented on Mar 11, 2026

    @melvin-bot

    @annaweber830 Huh... This is 4 days overdue. Who can take care of this?

  20. annaweber830 commented on Mar 25, 2026

    @annaweber830
    Contributor

    Hi @mallenexpensify I didn't receive payment.

  21. mallenexpensify commented on Mar 26, 2026

    @mallenexpensify
    Contributor

    @annaweber830 paid, summary updated above. Thx.

    @annaweber830 when we post the below messages, make sure you reply and tag me/us so I get a notification to pay ya. Thx

    @annaweber830 can you please accept the job below? Please reply here and tag me once you have.
    upwork.com/jobs/~022031053590728663848

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

Metadata

Metadata

Labels

Awaiting PaymentAuto-added when associated PR is deployed to productionBugSomething is broken. Auto assigns a BugZero manager.DailyKSv2ExternalAdded to denote the issue can be worked on by a contributor

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions