Skip to main content

Bug Tracker

Side navigation

#4714 closed bug (invalid)

Opened June 02, 2009 12:19AM UTC

Closed October 13, 2009 01:12AM UTC

[autocomplete] matching doesn't work when options.minChar is > 1

Reported by: damian.biollo Owned by:
Priority: major Milestone: 1.4
Component: unfiled Version: 1.3.2
Keywords: Cc:
Blocked by: Blocking:
Description

This is a simple bug in the for loop:

load: function(q) {

...

if (options.matchSubset) {

for (var i = q.length - 1; i >= options.minChars; i--) {

If you specify minChars of 3 or some other value greater than 1, then the autocomplete list never shows up.

The fix for this bug is to make the loop go to 1, rather than minChars:

for (var i = q.length - 1; i >= 1; i--)

Attachments (0)
Change History (1)

Changed October 13, 2009 01:12AM UTC by dmethvin comment:1

resolution: → invalid
status: newclosed

This is not a jQuery core bug. Please use the jQuery forums or contact the author via the method they request. For jQuery UI plugins, please file a bug on http://dev.jqueryui.com .