-
Notifications
You must be signed in to change notification settings - Fork 586
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
focusFirstSuggestion only focuses the first suggestion if the suggestions list changes #225
Comments
Thanks for reporting, this is clearly a bug. I'll have a look. |
This is fixed in v5.1.2 now |
Thank you for looking at this so quickly! I believe it may have had an unintended side effect though. Now when focusFirstSuggestion is enabled, mouse hover does not change the highlighted item. The focus on the first suggestion seems to be overriding the mouse hover. When there is a scrollbar, the mouse hover is also jumping the scroll point back to the top of the list. |
You're right, let me check. |
This is fixed in v6.0.0 now. |
When focusFirstSuggestion is set, it appears that the first suggestion is only focused when the suggestion list changes. If additional typing does not refine the suggestions list (most commonly when there is only one suggestion left), then the focus is removed.
For example on this Codepen, if you type 'j' then 'Java' is focused. If you type 'ja' then both 'Java' and 'Javascript' are displayed, but neither are focused.
The text was updated successfully, but these errors were encountered: