Bug Tracker

Ticket #3279 (closed bug: invalid)

Opened 6 years ago

Last modified 3 years ago

[autocomplete] trimWords splits on multipleSeparator regardless of options.multiple setting

Reported by: SDraconis Owned by:
Priority: minor Milestone: 1.3
Component: plugin Version: 1.2.6
Keywords: Cc:
Blocking: Blocked by:

Description

This is for Jörn Zaefferer's AutoComplete plugin ( http://bassistance.de/jquery-plugins/jquery-plugin-autocomplete/).

The trimWords function will always split the value on options.multipleSeparator, even if options.multiple == false. The fix is to change the line

var words = value.split( options.multipleSeparator );

to

var words = options.multiple ? value.split( options.multipleSeparator ) : value;

Change History

comment:1 Changed 6 years ago by SDraconis

Sorry, the line should be

var words = options.multiple ? value.split( options.multipleSeparator ) : [value];

comment:2 Changed 5 years ago by dmethvin

  • Status changed from new to closed
  • Resolution set to invalid

This is not a jQuery core bug. Please report plugin bugs to the plugin's author, or ask on the jQuery forums. jQuery UI bugs should be reported on the UI bug tracker,  http://dev.jqueryui.com .

comment:3 Changed 3 years ago by anonymous

comment:4 Changed 3 years ago by anjumasim

Last edited 3 years ago by anjumasim (previous) (diff)
Note: See TracTickets for help on using tickets.