Resolved an issue of selection in the Select2Cell, when the value is of

type string and not an array.
This commit is contained in:
Ashesh Vashi 2016-01-12 00:08:53 +05:30
parent 3887c84446
commit fc926d7200

View File

@ -341,7 +341,8 @@
this.template({ this.template({
text: optionText, text: optionText,
value: optionValue, value: optionValue,
selected: _.indexOf(selectedValues, optionValue) > -1 selected: (selectedValues == optionValue) ||
(_.indexOf(selectedValues, optionValue) > -1)
})); }));
} else { } else {
throw new TypeError("optionValues elements must be a name-value pair."); throw new TypeError("optionValues elements must be a name-value pair.");