Skip to main content

Bug Tracker

Side navigation

#2756 closed bug (invalid)

Opened April 28, 2008 11:40PM UTC

Closed June 10, 2009 09:14AM UTC

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

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() ){
Attachments (0)
Change History (5)

Changed April 28, 2008 11:45PM UTC by coreycoto comment:1

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

contentType: "application/json",

cacheLength: 1,

max: 10,

multiple: true,

dataType: 'json'

});

Changed April 28, 2008 11:48PM UTC by coreycoto comment:2

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.

Changed April 29, 2008 10:57PM UTC by joern comment:3

owner: → joern

Changed May 01, 2008 06:31AM UTC by davidserduke comment:4

component: coreplugin
description: 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() ){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() ){ \ }}}

Dup of #2757?

Changed June 10, 2009 09:14AM UTC by joern comment:5

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.