|
|
@ -244,10 +244,16 @@ BI.MultiSelectInsertNoBarList = BI.inherit(BI.Single, { |
|
|
|
var self = this, o = this.options; |
|
|
|
var self = this, o = this.options; |
|
|
|
this._assertValue(res); |
|
|
|
this._assertValue(res); |
|
|
|
if (this.storeValue.type === res.type) { |
|
|
|
if (this.storeValue.type === res.type) { |
|
|
|
var result = BI.Func.getSearchResult(this.storeValue.value, this.trigger.getKey()); |
|
|
|
var result = BI.Func.getSearchResult(BI.map(this.storeValue.value, function (_i, v) { |
|
|
|
|
|
|
|
return { |
|
|
|
|
|
|
|
text: o.valueFormatter(v) || v, |
|
|
|
|
|
|
|
value: v |
|
|
|
|
|
|
|
}; |
|
|
|
|
|
|
|
}), this.trigger.getKey()); |
|
|
|
var change = false; |
|
|
|
var change = false; |
|
|
|
var map = this._makeMap(this.storeValue.value); |
|
|
|
var map = this._makeMap(this.storeValue.value); |
|
|
|
BI.each(BI.concat(result.match, result.find), function (i, v) { |
|
|
|
BI.each(BI.concat(result.match, result.find), function (i, obj) { |
|
|
|
|
|
|
|
var v = obj.value; |
|
|
|
if (BI.isNotNull(map[v])) { |
|
|
|
if (BI.isNotNull(map[v])) { |
|
|
|
change = true; |
|
|
|
change = true; |
|
|
|
delete map[v]; |
|
|
|
delete map[v]; |
|
|
|