Skip to content

[Bug]: Click on select component scrolls to the left of the page #910

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

Open
mkempf opened this issue Apr 16, 2025 · 0 comments
Open

[Bug]: Click on select component scrolls to the left of the page #910

mkempf opened this issue Apr 16, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@mkempf
Copy link

mkempf commented Apr 16, 2025

Bug description

  • Two select components are located along side of each other with having a viewport that is smaller than to show both selects (horizontal scrollbar)
  • Both select component have selected an option

When try to select an option in the second component the view is scrolled to the left.

Expected behavior

There should be no scrolling and in the second select component an option could be chosen

Steps to reproduce

  1. Go to: https://codepen.io/martin_kf/pen/JoojYqQ
  2. Select "Thomas Edison" in the left select box
  3. Select any other option in the right select box
  4. Shrink the UI that you have a scrollbar horizontally to move the right select component
  5. Try selecting anything in right select component
  6. The browser view port scrolled to the left.

Repeat with the CSS fix in the CSS Section:
-> 6. No scrolling is done an it looks good -> Question: Does it break any other functionality.

Additional context

Tested on:

  • OS: Windows
  • Browser chrome,
  • Device: Desktop
@mkempf mkempf added the bug Something isn't working label Apr 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant