hailwood / jQuery-Tagit

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

Allow scrollable results #50

Open HallyM opened 12 years ago

HallyM commented 12 years ago

jQuery UI's autocomplete plugin allows scrollable results in a simple manner only by changing some css: http://jqueryui.com/demos/autocomplete/#maxheight

Unfortuntely, Tagit prevents the scrollable results dropdown due to a blur timer (see the commented if statement): this.input.blur(function (e) { self.currentLabel = $(this).val(); self.currentValue = $(this).data('value'); /_if (self.options.allowNewTags) { self.timer = setTimeout(function () { self.addTag(self.currentLabel, self.currentValue); self.currentValue = ''; self.currentLabel = ''; }, 400); }/ $(this).val('').removeData('value'); return false; });

It would be really useful to enable this feature in the plugin. Perhaps as a plugin option? My use case scenario involves a great number of autocomplete results that must be displayed in a limited area, so the scrollable results would be very suitable.