Skip to content

Expense - Unable to scroll the bottom modal More section on the Expense that needs approval #66008

Closed

Description

@jponikarchuk

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: v9.1.80-0
Reproducible in staging?: Yes
Reproducible in production?: No
If this was caught during regression testing, add the test name, ID and link from TestRail: https://expensify.testrail.io/index.php?/cases/view/4090251
Email or phone of affected tester (no customers): N/A
Issue reported by: Applause Internal Team
Device used: Chrome / Xiaomi Poco F5, Android 13 / Xiaomi Poco F5, iOS 15.8.3 / iPhone 7 Plus
App Component: Other

Action Performed:

Preconditions:

  • Use a small screen device
  • Navigate to "Workspaces" and create a new workspace.
  • Open "Workflows" and disable delayed submissions and approvals.
  1. Navigate to workspace chat
  2. Submit a manual expense
  3. Navigate to the expense detail
  4. Tap the More button
  5. Verify the bottom modal will appear and try to scroll it

Expected Result:

The bottom modal More section on the Expense that needs approval should be scrollable

Actual Result:

Unable to scroll the bottom modal More section on the Expense that needs approval
Note:

  • It make the Delete button is hidden (on mWeb) or partially hidden (on Android and iOS)

Workaround:

Unknown

Platforms:

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

Screenshots/Videos

Bug6885537_1752310062150.65958_-_Expense_-_Unable_to_scroll_the_bottom_modal_More_section_on_the_Expense_that_needs_approval.mp4

View all open jobs on GitHub

Activity

  1. added
    DeployBlockerCash
    Bug
    on Jul 13, 2025
  2. melvin-bot commented on Jul 13, 2025

    @melvin-bot

    Triggered auto assignment to @clarajones-expensify (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. melvin-bot commented on Jul 13, 2025

    @melvin-bot

    Triggered auto assignment to @yuwenmemon (DeployBlockerCash), see https://stackoverflowteams.com/c/expensify/questions/9980/ for more details.

  4. melvin-bot commented on Jul 13, 2025

    @melvin-bot

    💬 A slack conversation has been started in #expensify-open-source

  5. github-actions commented on Jul 13, 2025

    @github-actions
    Contributor

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

    1. Identify the pull request that introduced this issue and revert it.
    2. Find someone who can quickly fix the issue.
    3. Fix the issue yourself.
  6. rushatgabhane commented on Jul 13, 2025

    @rushatgabhane
    Member

    @BlameGPT please help us find the prs

  7. BlameGPT commented on Jul 13, 2025

    @BlameGPT
    Contributor

    Vibe check failed for these PRs 💅

    If not above, check these

  8. andriferry commented on Jul 14, 2025

    @andriferry

    Proposal

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

    Expense - Unable to scroll the bottom modal More section on the Expense that needs approval

    What is the root cause of that problem?

    We don't have overflow as a scroll behavior

    return shouldEnableMaxHeight ? {maxHeight: windowHeight - 250} : {};

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

    Add overflow: 'scroll' style

    const menuContainerStyle = useMemo(() => {
            if (isSmallScreenWidth) {
                return shouldEnableMaxHeight ? {maxHeight: windowHeight - 250, overflow: 'scroll'} : {};
            }
            return styles.createMenuContainer;
        }, [isSmallScreenWidth, shouldEnableMaxHeight, windowHeight, styles.createMenuContainer]);
    
    

    NA

    What alternative solutions did you explore? (Optional)

    NA

    Result

    Screen.Recording.2025-07-14.at.15.36.16.mov
  9. thelullabyy commented on Jul 14, 2025

    @thelullabyy
    Contributor

    Proposal

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

    The "More" section of the bottom modal on an Expense that needs approval cannot be scrolled, making it difficult or impossible for users to access all available options when the list is long.

    What is the root cause of that problem?

    Comes from #65296
    The dropdown menu in the following component:

    <ButtonWithDropdownMenu

    does not use a ScrollView because the shouldPopoverUseScrollView prop is set to false. As a result, the "More" section does not become scrollable even when it contains many options.

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

    We should conditionally enable the shouldPopoverUseScrollView prop in the component at the link above. This can be done similarly to how it was implemented here:

    shouldPopoverUseScrollView={paymentButtonOptions.length > 5}
    containerStyles={paymentButtonOptions.length > 5 ? styles.settlementButtonListContainer : {}}

    Specifically, we can:

    • Enable shouldPopoverUseScrollView when the number of options exceeds 5.
    • Apply appropriate padding and a maxHeight style to the container for better usability.

    These styling tweaks (e.g., padding and max height) can be finalized during the PR phase.

    What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?

    N/A

    What alternative solutions did you explore? (Optional)

    N/A

  10. added
    Reviewing
    on Jul 14, 2025
  11. luacmartins commented on Jul 15, 2025

    @luacmartins
    Contributor

    We reverted the offending PR #66087. Closing

  12. removed
    DeployBlockerCash
    on Jul 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

BugEngineeringHourlyReviewing

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions