jQuery UI autocomplete problem

jQuery UI autocomplete problem

Hi,

I'm using jQuery UI's autocomplete on my site, and recently I discovered a problem.

When typing in the input field, the autocomplete seem to continue its search for what I've entered even if i type another letter. This is very noticable when having a slow internet connection. So, if I'm typing "walmart", and the search is triggered after "wal", the input field will eventually change to "wal" and show suggestions for "wal" when that search is completed, even if I finished typing the whole word.

My question is, how can I make the autocomplete cancel the current search when typing another letter?

Regards,
Jesper