jQuery-Autocomplete icon indicating copy to clipboard operation
jQuery-Autocomplete copied to clipboard

onSearchComplete triggers after onSelect when only one match exists

Open diegosps opened this issue 2 years ago • 0 comments

When the behavior described in #846 happens (only one suggestion with exact match), the order of the events are swapped.

For example, if I have logic the does some cleanup at search complete and do some processing at select, whenever I click in an already filled input, I always end up with a clear state because onSearchComplete triggers after the onSelect event.

I can do some checks to avoid the cleanup.

diegosps avatar Jan 06 '24 03:01 diegosps