jquery-autocomplete
jquery-autocomplete copied to clipboard
After typing more text after minChars, it doesn't re-retrieve data
In my app, i am making a remote call to get json back. I have minChars set to 4. I get data back, but when I type the 5th character, it doesn't call back to the remove side to get more data. On the remote side I have pagination, so I only return 10 results. So 4 chars might really have more than 10 results in my database, but I don't want to have to retrieve all results in case it was hundreds of matches for 4 characters.
This was effecting me too. I fixed it by adjusting maxChars to the length of the current value of the input whenever the input gets updated. This seems to do a good enough job.
+1 same problem
@gusgordon You mean minChars by maxChars right?