hailwood / jQuery-Tagit

The Jquery Tagit Plugin transforms an html unordered list into a unique tagging plugin.
264 stars 109 forks source link

use autoFocus option in autocomplete if allowNewTags is false #29

Closed kcivey closed 12 years ago

kcivey commented 12 years ago

This fixes issue #8 for me, which doesn't seem to be fixed by the pull request in #12.

If allowNewTags is false, then it the autocomplete should use the autoFocus option, to avoid having to press the down arrow to select an option. If my suggestion isn't the best way, then there should be some other way to set autoFocus for the autocomplete, perhaps by having an autoFocus option for tagit that gets passed on to autocomplete.