devbridge / jQuery-Autocomplete

Ajax Autocomplete for jQuery allows you to easily create autocomplete/autosuggest boxes for text input fields
https://www.devbridge.com/sourcery/components/jquery-autocomplete/
Other
3.57k stars 1.67k forks source link

update findBestHint function #813

Open migliori opened 3 years ago

migliori commented 3 years ago

Hello,

When hitting the backward key in the search input I got a "Cannot read property 'toLowerCase' of undefined" error.

I solved the issue with editing the findBestHint function when suggestion.value doesn't exist.

Thanks