Ticket #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: | |
| Blocking: | Blocked by: |
Description (last modified by davidserduke) (diff)
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
comment:2 Changed 5 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:4 Changed 5 years ago by davidserduke
- Component changed from core to plugin
- Description modified (diff)
Dup of #2757?
comment:5 Changed 4 years ago by joern
- Status changed from new to closed
- Resolution set to invalid
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.
Please follow the bug reporting guidlines and use jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.
