selectWoo icon indicating copy to clipboard operation
selectWoo copied to clipboard

jQuery object not supported as templateSelection - Displays as [object Object]

Open uturnr opened this issue 5 years ago • 1 comments

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:

Screen Shot 2019-08-26 at 12 22 11 PM

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.

uturnr avatar Aug 26 '19 18:08 uturnr

Please see my comment in #39.

fabianmarz avatar Aug 20 '20 07:08 fabianmarz