-
-
Notifications
You must be signed in to change notification settings - Fork 32.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[base-ui][Select] Buggy absolute input triggers body scrollbar #40565
Comments
To reproduce, very simple: go to https://mui.com/base-ui/react-select/#introduction, and voilà: If you are not seeing it, please, enable https://www.notion.so/mui-org/Laptop-configuration-d306ca6120004d2e9034144e71c45b34?pvs=4#2bd404c6337443a0870ba1238293a457 as a permanent setting on macOS. It's a regression introduced in #38167, so I think it should be the same people who take care of this bug to optimize context. Also, it's strange, why is are the source of the Base UI select material-ui/packages/mui-base/src/useSelect/useSelect.ts Lines 33 to 44 in 9e0af1b
inline the style of the visuallyHidden helper? material-ui/packages/mui-utils/src/visuallyHidden.ts Lines 1 to 11 in 9e0af1b
It looks like bundle-size bloat to me. It would also solve this bug. |
Off-topic We have two ways to improve here:
|
Steps to reproduce
Link to live example: (click here)
Steps:
Current behavior
The scrollbar appears, due to an input element being created along with Select. The input element has position absolute and margin -1, which causes the issue to happen.
Expected behavior
No body scrollbar
Context
No response
Your environment
npx @mui/envinfo
Search keywords: select, margin
The text was updated successfully, but these errors were encountered: