Bug Tracker

Opened 12 years ago

Closed 11 years ago

#2756 closed bug (invalid)

Autocomplete plugin:

Reported by: coreycoto Owned by: joern
Priority: major Milestone: 1.2.4
Component: plugin Version: 1.2.3
Keywords: autocomplete Cc:
Blocked by: Blocking:

Description (last modified by davidserduke)

Users unable from inputting items not in the autocomplete selection list.

Fix proposed by Gustavo Picón (tabo) on Jörn's blog (http://bassistance.de/jquery-plugins/jquery-plugin-autocomplete/) successfully corrects this issue.

Code:

// matches also semicolon
case options.multiple && $.trim(options.multipleSeparator) == "," &&
KEY.COMMA:
//FIX: Allows user to input item not in selection
if (!options.mustMatch) {
       break;
}
case KEY.TAB:
case KEY.RETURN:
if( selectCurrent() ){

Change History (5)

comment:1 Changed 12 years ago by coreycoto

$("#txtTagInput").autocomplete("http://www.jquery.com/webservice", {

contentType: "application/json", cacheLength: 1, max: 10, multiple: true, dataType: 'json'

});

comment:2 Changed 12 years ago by coreycoto

Useage example:

Selection list contains: Boston Bottom Box

User enters: "Bar"

Once the user enters a comma, the first item in the selection list is picked.

comment:3 Changed 12 years ago by joern

Owner: set to joern

comment:4 Changed 12 years ago by davidserduke

Component: coreplugin
Description: modified (diff)

Dup of #2757?

comment:5 Changed 11 years ago by joern

Resolution: invalid
Status: newclosed

The autocomplete plugin is now developed under the jQuery UI umbrella. Reopen a ticket there (http://dev.jqueryui.com/) or participate on the planning wiki (http://wiki.jqueryui.com/Autocomplete) if appropiate.

Note: See TracTickets for help on using tickets.