-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
[Dropdown] Clicking on the dropdown icon will generate multiple hits to the server (when no results are returned). #5231
Comments
Another test case in #5290 where the request loops infinitely:
|
A bit critical issue. |
Quick work-around is to define own
|
From what I understand this means that no message is added. As there's no message & no items, the query gets run again. |
I can see the recursion in the logic here. I'll add a solve to next patch release. |
I was just about to upgrade to v2.2.10 when I noticed my remote dropdowns where generating multiple hits to the server when no results are returned. It also looks like the caching parameter is ignored.
For some reason this bug only happens if you click on the actual dropdown icon (you will see the loading icon spin, stop, spin, stop... ).
If you look at the console log you will see multiple repeated requests.
http://jsfiddle.net/kmd1970/pzcm8zo4/
(Please note this link needs to remain
http://
for the remote ajax call to work properly)Looks like this issue started in v2.2.8. In more recent versions (v2.2.7) the dropdown icon doesn't open the empty menu (after load) until you click into the input at least once, so this issue doesn't occur.
The text was updated successfully, but these errors were encountered: