shadcn-ui / ui

Beautifully designed components that you can copy and paste into your apps. Accessible. Customizable. Open Source.
https://ui.shadcn.com
MIT License
68.26k stars 4.03k forks source link

[bug]: Select removes scrollbar #4227

Open LuziferSenpai opened 1 month ago

LuziferSenpai commented 1 month ago

Describe the bug

When using a select somewhere and the body has a scrollbar, this scrollbar gets removed as soon as the select is used. showcase

Affected component/components

Select

How to reproduce

  1. Give the body a scrollbar
  2. Add a Select
  3. Open the Select

Codesandbox/StackBlitz link

No response

Logs

No response

System Info

Chrome

Before submitting

mustafaR35 commented 1 month ago

Hey I have a similar issue, where i cant scroll the content, any idea as to why that is ?

spencersablan commented 1 month ago

Hey friends 👋

This seems to be a known feature of the Radix UI select component. See this comment from a similar issue raised for Radix UI.

One thing you can try is using a popover instead of a select! 😄

Naitik2408 commented 1 month ago

Can you provide me exact path of the page where you find the issue.

LuziferSenpai commented 3 weeks ago

Can you provide me exact path of the page where you find the issue.

You just add a select to any project and open it, you see your scrollbar dissappearing