-
Notifications
You must be signed in to change notification settings - Fork 426
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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
HighlightFirst does not play nice with ajax whitelist #884
Comments
Please create a reproducible working demo (as asked in the issue template) so I could help. I don't want to spend my time creating a demo AND also figuring out what's wrong. Please, help me help you by creating a demo for me to examine. |
Hi @yairEO, a few minutes I experienced the same problem.
I also don't have the time to set up a full demo but I found the culprit of the problem. Using the Anyway the thing is that what I provided above is just a modified version of the example you have in the README.md
I haven't gone into full depth to see why exactly it is happening but it seems that showing and hiding of the dropdown interferes with In summary, @yairEO, you should probably edit this specific example not to include a call to |
TLDR for anyone experiencing the same problem: |
Prerequisites
馃挜 Demo Page
Explanation
I have highlightFirst set to true, a custom template if there are no elements returned and have an input callback with a small debounce, if I hit enter before the debounce kicks in then the first tag in the list is added properly. If the debounce does kick in and the whitelist gets refreshed then the first element is not added when hitting enter.
What is the expected behavior?
The first element should be added as it is highlighted
What is happening instead?
The element is not added
What error message are you getting?
No error
Code used
The text was updated successfully, but these errors were encountered: