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
showLoadingOverlay not behaving as expected when active and scrolling #1463
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)
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.
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.
Activity
Phillbaska commentedon Sep 4, 2025
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',
}
}
Phillbaska commentedon Sep 5, 2025
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.
lucien-theron commentedon Jan 22, 2026
I have the same issue