selectWoo
selectWoo copied to clipboard
jQuery object not supported as templateSelection - Displays as [object Object]
The current version of select2 supports jQuery objects in both templateResult
and templateSelection
. The current version of selectWoo only supports them for templateResult
.
This is how my selected template appears when I use a jQuery object in selectWoo:

SingleSelection.prototype.update
is different in the current version of select2, and in particular, changing:
$rendered.empty().text(formatted);
to:
$rendered.empty().append(formatted);
would add support for jQuery objects.
Please see my comment in #39.