ui icon indicating copy to clipboard operation
ui copied to clipboard

Select Component Scrollbar Behavior Issue in Chrome on Windows

Open BITRU opened this issue 1 year ago • 1 comments

Environment OS: Windows Browser: Chrome Version 120.0.6099.225

Description On Windows, when clicking on a select component, the side scrollbar unexpectedly hides and is replaced with a background, causing other page components to shift slightly. This behavior does not occur on macOS, likely because the scrollbar is hidden by default there.

Steps to Reproduce Open Chrome on Windows. Click to select fruit. Observe that the scrollbar disappears and the background replaces it, with slight movement in the page layout.

Additional Information An MVP with a clean install can be found here for further investigation: CodeSandbox MVP

I have attached screenshots to demonstrate the issue:

Screenshot 2024-02-11 at 23 17 27 Screenshot 2024-02-11 at 23 18 04

BITRU avatar Feb 11 '24 19:02 BITRU

shadcn-ui uses radix-ui under the hood. You can see that this issue also occurs in the radix-ui documentation. It's likely shadcn-ui would have little control over resolving this so I recommend raising an issue over at radix-ui.

rilrom avatar Feb 12 '24 12:02 rilrom

This issue has been automatically closed because it received no activity for a while. If you think it was closed by accident, please leave a comment. Thank you.

shadcn avatar Jun 04 '24 23:06 shadcn