jquery-autocomplete icon indicating copy to clipboard operation
jquery-autocomplete copied to clipboard

After typing more text after minChars, it doesn't re-retrieve data

Open bytor99999 opened this issue 12 years ago • 3 comments

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.

bytor99999 avatar Jun 28 '12 03:06 bytor99999

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.

gusgordon avatar Jul 07 '12 05:07 gusgordon

+1 same problem

nguyenchiencong avatar Dec 27 '12 10:12 nguyenchiencong

@gusgordon You mean minChars by maxChars right?

nguyenchiencong avatar Dec 27 '12 10:12 nguyenchiencong