-
-
Notifications
You must be signed in to change notification settings - Fork 32.3k
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
[Autocomplete] autoHighlight doesn't highlight on keypress following a "clear" #19251
Comments
@aisamu Thanks for opening this issue. I can reproduce the issue. The reproduction seems simple:
The problem is that we try to reset the highlighted index but the listboxRef isn't open yet. |
Just to be sure: when you say it's a duplicate you're referring to the root cause, right? (the linked issue mentions
This might be unfortunately beyond my current JS-fu. In any case, I'll surely try to allocate some time (and perhaps pester some knowledgeable coworkers) Thanks for following up! |
@aisamu No pain, no gain 🙃. You have found 3 nice issues with the Autocomplete component. I have proposed 3 solutions. If you don't have the time to look into them. It's fine, if they are important enough, a third developer might come in and carry the resolution down to a stable release. We really appreciate the quality of your bug reports, especially 3 in a row. |
1 out of 3! With some faith the other two might eventually arrive as well
Given our lack of skills to solve it ourselves, it's really the very least we could do :) |
Current Behavior 😯
autoHighlight doesn't highlight the first item after clearing the query (either via mouse or keyboard):
Clearing with the mouse
Clearing with the Keyboard
Expected Behavior 🤔
First item should be highlighted
Steps to Reproduce 🕹
Steps:
autoHighlight
enabled)esc
or ✖️), then proceed with the queryYour Environment 🌎
Whatever's being currently used for the demo page!
We've double checked that it also happens on our environment:
The text was updated successfully, but these errors were encountered: