Skip to content
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

Dropdown overflow issue #5812

Open
huntjosh opened this issue May 12, 2021 · 2 comments
Open

Dropdown overflow issue #5812

huntjosh opened this issue May 12, 2021 · 2 comments

Comments

@huntjosh
Copy link

huntjosh commented May 12, 2021

Describe the bug

Dropdown on the right side of the window triggers flickering horizontal scrolling on the body

To Reproduce

Steps to reproduce the behavior:

  1. Click on the 'd' button (seems to be easier to replicate by first holding down and then releasing)
  2. observe the bottom horizontal scrollbar

Reproducible Example

https://codesandbox.io/s/frosty-swanson-lzk4f

Expected behavior

No horizontal scroll bar flickering

Screenshots

Hard to get a screenshot sorry

Environment (please complete the following information)

  • Operating System: win 10
  • Browser, Version: chrome 90.0.4430.212
  • React-Bootstrap Version: 1.6.0

Additional context

It seems like the dropdown menu is initially rendering with an overflow causing the horizontal scroll bar, and then it's being transformed to the correct location which is removing the overflow and scroll bar

I can work around this by setting the width on the button container to be wider than the dropdown menu, but that isn't a very robust solution on my end, so wondering if there is also other ways that I can solve this on my end.

@thelokeshgoel00
Copy link

Tried to reproduce it.
image

See that the whole HTML width is still the size of viewport. Its quite weird actually.
See the scrolled right version
image

I also debugged that the main culprit is the below code where everything starts.
image
commitRoot(root)
I tried to get the value of root variable, but not able to copy it successfully.

@SimpleCreations
Copy link

I am having the same issue with react-bootstrap 2.1.2.

@eric-burel eric-burel mentioned this issue Oct 24, 2023
3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants