-
Notifications
You must be signed in to change notification settings - Fork 73
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
Problem with ensureFocusedSuggestionIsVisible #12
Labels
Comments
@pdc Any chance you could help with this one? |
Is any workaround available for this issue? I'm having the same autoscroll issue in |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi @moroshko,
I'm using the
react-autosuggest
component and applying the following two styles to thesuggestionsContainer
in mytheme
in order to get a scrollable dropdown when there are enough suggestions to exceed 300px:A recent change to
react-autowhatever
seemed to introduce a bug where if I scroll down in the list and then move my mouse pointer to the top element I can get the list to scroll by itself all of the way to the top of the list without ever touching the mouse wheel. I've been able to reproduce this on a variety of platforms and browsers (currently on Mac Chrome), but it seemed to be more serious in Windows. Looking at the code inensureFocusedSuggestionIsVisible
, it seems that it will autoscroll to align the top of a focused item to the container. The bug is likely around this logic as even after the initial alignment I seem to be able to get it to then align to the previous item indefinitely. When I builtreact-autosuggest
with areact-autowhatever
dependency of'~3.1.0'
instead of'^3.1.0'
the problem went away.Steps to reproduce:
react-autosuggest__suggestions-container
and then back on to the first visible item and watch the list continue to scroll until it hits the top.The text was updated successfully, but these errors were encountered: