Differentiate between a minCharacters of 0 and undefined. #6

Open
wants to merge 1 commit into
from

Conversation

Projects
None yet
1 participant

I assume this file is deprecated in favor of https://github.com/jquery/jquery-ui/blob/master/ui/jquery.ui.autocomplete.js, but this version found its way into one of my projects, and I felt the need to share this fix (or be told why I'm mistaken). Thanks!

@neomindryan neomindryan Differentiate between a minCharacters of 0 and undefined.
The comment at line 65 implies that setting minCharacters to 0 will result in no matches being displayed when there are no characters in the search box (e.g. if you've backspaced your search term). The code was treating 'undefined' and 0 identically.
4eb79fc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment