-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Ajax search get multiple calls #2659
Comments
After some debug, i found that There's a a logical issue (i think) in this block bootstrap-select/js/bootstrap-select.js Lines 1463 to 1471 in e2425ed
I tried to comment and works fine! Another issue found exploring code: bootstrap-select/js/bootstrap-select.js Lines 1011 to 1027 in e2425ed
Thanks |
Thank you for looking into it, indeed it seems weird that this code is repeated two times! |
Hi, this is what happens: when i press only one character bootstrap-select calls ajax request once; with two characters, twice; when i press third character, bootstrap-select calls ajax request 40 times! My code is very simple:
Anyone can help me to fix this issue? |
Investigating. Looks like this is only happening if the number of options is less than or equal to |
Hi,
i'm trying to use Ajax/JSON data source support as in https://github.com/snapappointments/bootstrap-select/releases/tag/v1.14.0-beta.
No problem if i use
source.data
property with an ajax call, but when i try to usesource.search
i get a very strange issue: typing 1 character, selectpicker posts only one ajax call; typing 2 characters, selectpicker posts 2 ajax call; from 3 characters posts so much ajax call, lower is result greather is number of calls (eg. with only two items in result, selectpicker post also 21 ajax call repeating more time result).This is my JS code:
Thanks
The text was updated successfully, but these errors were encountered: