Skip to content

Commit

Permalink
Merge pull request aehlke#202 from jpotterm/master
Browse files Browse the repository at this point in the history
Allow creation of tags when autocomplete menu is open
  • Loading branch information
aehlke committed Oct 12, 2013
2 parents 32171c0 + 3557675 commit 724066e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion js/tag-it.js
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,8 @@
}

// Autocomplete will create its own tag from a selection and close automatically.
if (!that.tagInput.data('autocomplete-open')) {
if (!(that.options.autocomplete.autoFocus && that.tagInput.data('autocomplete-open'))) {
that.tagInput.autocomplete('close');
that.createTag(that._cleanedInput());
}
}
Expand Down

0 comments on commit 724066e

Please sign in to comment.