_selectMulti: function(values) {
this._selection.clear();
if (values) {
for (var i = 0; i < values.length; i++) {
this._selection.setItemSelected(this._valueToItem(values[i]), true);
}
}
}
It first clear all selection, to reselect only the current selected values. The collateral effect is that if an item was already selected, it will fire a deselect event, and then fire a select event again (even though it was already selected)
The problem is due to the
selectMulti
logic:It first clear all selection, to reselect only the current selected values. The collateral effect is that if an item was already selected, it will fire a deselect event, and then fire a select event again (even though it was already selected)