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

Weird scroll behavior when using scrollToIndex with react-select #100

Closed
mahaveer0496 opened this issue Mar 2, 2021 · 1 comment
Closed

Comments

@mahaveer0496
Copy link

I'm using this library to virtualize react-select's menuList and when using scrollToIndex after the menu opens, the scroll gets stuck sometimes.

Step to reproduce -

  1. Open this codesandbox
  2. Click menu
  3. Select last element -> Click menu again
  4. Try to scroll

Thanks in advance!

@tannerlinsley
Copy link
Collaborator

The MenuList component you are using is the culprit I believe. Turning it into a div, everything is fixed. My guess is that it's either not rendering it's styles the way you expect, or its trapping scroll events or something. I would file an issue with react-select.

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

2 participants