When you deselect an item, this element is removed from the value.
So from 28 steps to 27 elements.
But in the multiselect does not display any element.
But if I join the viewmodel, that variable is made up of 27 elements.
The selected items are not displayed when you deselect one of them.
This happens if only the selected ones are the same as the datasource.
it's possible ? has it ever happened to you?
<
select
id
=
"a"
data-role
=
"multiselect"
data-value-primitive
=
"true"
data-text-field
=
"name"
data-value-field
=
"id"
data-bind="value: doc.Value,
enabled: doc.S,
source: doc.Source,
events: {
dataBound: doc.onDataBound,
select: doc.onSelect,
deselect: doc.onDeselect,
change: doc.onChange
}">
</
select
>