Resolved an issue of selection in the Select2Cell, when the value is of
type string and not an array.pull/3/head
parent
3887c84446
commit
fc926d7200
|
|
@ -341,7 +341,8 @@
|
|||
this.template({
|
||||
text: optionText,
|
||||
value: optionValue,
|
||||
selected: _.indexOf(selectedValues, optionValue) > -1
|
||||
selected: (selectedValues == optionValue) ||
|
||||
(_.indexOf(selectedValues, optionValue) > -1)
|
||||
}));
|
||||
} else {
|
||||
throw new TypeError("optionValues elements must be a name-value pair.");
|
||||
|
|
|
|||
Loading…
Reference in New Issue