Skip to content

showLoadingOverlay not behaving as expected when active and scrolling #1463

Open

Description

@Phillbaska

material-react-table version

3.2.0

react & react-dom versions

19

Describe the bug and the steps to reproduce it

When enabling showLoadingOverlay the overlay is only present for the visible rows.

If you have a table which is not paginated, has a fixed hight, and has a sticky header and footer, when scrolling the loading overlay is bypassed and users can access row/row actions which should be blocked by the overlay.

Minimal, Reproducible Example - (Optional, but Recommended)

Here is a simple example:

https://stackblitz.com/edit/github-gj4nk373?file=src%2FTS.tsx

simply click the toggle overlay state button then, click inside the table and scroll with your mouse wheel or use the scroll bar.

My expectation is that the either scrolling should be disabled as a result of setting showLoadingOverlay as true and/or the overlay should not scroll.

OR

Scroll down the table records THEN the toggle overlay state button.

My expectation is the overlay will appear and i should not be able to scroll, however no overlay is visible unless i scroll back up to the top.

Screenshots or Videos (Optional)

No response

Do you intend to try to help solve this bug with your own PR?

No, because I do not know how

Terms

  • I understand that if my bug cannot be reliably reproduced in a debuggable environment, it will probably not be fixed and this issue may even be closed.

Activity

  1. Phillbaska commented on Sep 4, 2025

    @Phillbaska
    Author

    as a workaround, i have tied the state of showLoadingOverlay that of the overflow property within the muiTableContainerProps e.g

    {
    sx: {
    overflow: showLoadingOverlay ? 'hidden' : 'auto',
    }
    }

  2. Phillbaska commented on Sep 5, 2025

    @Phillbaska
    Author

    Ok, actually the above workaround is not sufficient, as if scrolled before the state is toggled, the overlay is not visible. I have updated the example and reproduction instructions to reflect this.

  3. lucien-theron commented on Jan 22, 2026

    @lucien-theron

    I have the same issue

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions