-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
Unnecessary AJAX request sent on hint autocomplete #1344
Comments
I have the same kind of issue and it also happens when you select an option with the click of the mouse. |
If this could be useful, I had the same problem and was forced to change Typeahead autocomplete function commenting this.input.setQuery(data.val); row and adding a this.menu.empty(); row. |
MatthewReed that might be a good solution but I can't modify the original library due to project policies. Thanks for your suggestion though! Perhaps the authors could use that suggestion to fix the issue reported here? |
No, my solution is absolutely hack in that you can't view in your input field the single suggestion provided. Matteo Rossi ----Messaggio originale---- Data: 09/10/2015 22.21 A: "twitter/typeahead.js"typeahead.js@noreply.github.com Cc: "MatthewReed"orionerossi@libero.it Ogg: Re: [typeahead.js] Unnecessary AJAX request sent on hint autocomplete (#1344) MatthewReed that might be a good solution but I can't modify the original library due to project policies. Thanks for your suggestion though! Perhaps the authors could use that suggestion to fix the issue reported here? — |
understood. Let's hope the authors can solve it soon then. thanks again! Marco |
I used the MatthewReed solution but it didn't revolve my problem. Then I change it a little: It solved the autocomplete event problem but it still occurs when the input field got focused. I will try to fix it another time. For now it fits me. |
In this example : http://twitter.github.io/typeahead.js/examples/#remote
If I type
Chi
, there's 1 network request and I see 1 suggestion i.e.Chicago
. Now if I hit → or Tab key to autocomplete the hint, there's another network request sent forChicago
. How can I avoid this ?Probably related to #188 & #548
( I'll add that the reason isn't just to save on network requests. I have an app that dynamically updates the request URL and I want a better control over which requests are sent. In the above case, an automatic request is sent using a stale URL )
The text was updated successfully, but these errors were encountered: