Skip to content

Commit

Permalink
fix showAutocompleteOnFocus by giving default minLength
Browse files Browse the repository at this point in the history
  • Loading branch information
aehlke committed Nov 28, 2012
1 parent d5fe008 commit 1b5378a
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 13 deletions.
4 changes: 4 additions & 0 deletions js/tag-it.js
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,10 @@
this.tagInput.focus(function(event, ui) {
that._showAutocomplete();
});

if (typeof this.options.autocomplete.minLength === 'undefined') {
this.options.autocomplete.minLength = 0;
}
}

// Bind autocomplete.source callback functions to this context.
Expand Down
26 changes: 13 additions & 13 deletions js/tag-it.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 1b5378a

Please sign in to comment.