[useScrollLock] overflow-y: scroll support no longer working #611
Labels
bug 🐛
Something doesn't work
component: dialog
This is the name of the generic UI component, not the React module!
regression
A bug, but worse
Steps to reproduce
Steps:
Screen.Recording.2024-09-14.at.16.36.39.mov
Current behavior
Doesn't restore the value, it's overridden, so it introduces a layout shift.
Expected behavior
Correctly restore the previous values. For example https://github.com/mui/material-ui/blob/012c2e899b9a8977bb326746f43ef19a5f4f01a7/packages/mui-material/src/Modal/ModalManager.ts#L143 from https://mui.com/base-ui/react-modal/, it works.
Context
The support for
overflow-y: scroll
is needed to solve bugs like mui/material-ui#40749, until we can rely on #79.Your environment
npx @mui/envinfo
Search keywords: -
The text was updated successfully, but these errors were encountered: