Removing elements from current selections

tzabian's Avatar


19 May, 2010 10:45 AM

Found a bug where removing to first element will not update the value in the as-values input field. This can be fixed by updating the delete action to look for x, instead of ,x, in autoSuggest.js.

ie. replace(data[opts.selectedValuesProp]+",","")

  1. 1 Posted by alan.tanaman on 31 May, 2010 08:56 AM

    alan.tanaman's Avatar

    Great plugin, and great find tzabian!

    Just to add that your fix needs to be applied both for when the 'x' is clicked (as you posted), and when Delete is keyed: values_input.val().replace(","+last+",",","));

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:


Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts


? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac