Is it possible to prevent the browser scrollbar disappearing when a select is opened? #6612
Unanswered
NickWoodward
asked this question in
Q&A
Replies: 1 comment 3 replies
-
I think you're running into this #1216 |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
When the select components are opened they hide the browser scrollbar. This is fine in firefox, but in chrome it leads to content shifting, which I personally hate. Perhaps this is a mistake on my part, or there's a simple fix, but if not is there any way to prevent this behaviour, or otherwise prevent the content from shifting?
pl-[calc(100vw-100%)]
(edit: orw-[100vw]
) on the fixed content stops it from jumping, but the background still covers where the scrollbar was.See the Header in this demo: https://codesandbox.io/p/devbox/tmsykz?file=%2Fsrc%2FApp.tsx%3A7%2C42
Thanks :)
Beta Was this translation helpful? Give feedback.
All reactions