diff --git a/src/widget/multiselect/multiselect.combo.js b/src/widget/multiselect/multiselect.combo.js index 7b948e764c..b57185335e 100644 --- a/src/widget/multiselect/multiselect.combo.js +++ b/src/widget/multiselect/multiselect.combo.js @@ -395,7 +395,7 @@ BI.MultiSelectCombo = BI.inherit(BI.Single, { var map = this._makeMap(this.storeValue.value); BI.each(res.value, function (i, v) { if (!map[v]) { - self.storeValue.value.push(v); + BI.pushDistinct(self.storeValue.value, v); BI.remove(self.storeValue.assist, v); map[v] = v; } diff --git a/src/widget/multiselect/multiselect.combo.nobar.js b/src/widget/multiselect/multiselect.combo.nobar.js index 1589b65e6e..6203175e4a 100644 --- a/src/widget/multiselect/multiselect.combo.nobar.js +++ b/src/widget/multiselect/multiselect.combo.nobar.js @@ -422,7 +422,7 @@ BI.MultiSelectNoBarCombo = BI.inherit(BI.Single, { var map = this._makeMap(this.storeValue.value); BI.each(res.value, function (i, v) { if (!map[v]) { - self.storeValue.value.push(v); + BI.pushDistinct(self.storeValue.value, v); BI.remove(self.storeValue.assist, v); map[v] = v; } diff --git a/src/widget/multiselect/multiselect.insert.combo.js b/src/widget/multiselect/multiselect.insert.combo.js index 22fcf2ca03..5f025448b9 100644 --- a/src/widget/multiselect/multiselect.insert.combo.js +++ b/src/widget/multiselect/multiselect.insert.combo.js @@ -407,7 +407,7 @@ BI.MultiSelectInsertCombo = BI.inherit(BI.Single, { var map = this._makeMap(this.storeValue.value); BI.each(res.value, function (i, v) { if (!map[v]) { - self.storeValue.value.push(v); + BI.pushDistinct(self.storeValue.value, v); // value更新的时候assist也需要更新 BI.remove(self.storeValue.assist, v); map[v] = v; diff --git a/src/widget/multiselectlist/multiselectlist.insert.js b/src/widget/multiselectlist/multiselectlist.insert.js index 568ea43cb2..f4cea55c3d 100644 --- a/src/widget/multiselectlist/multiselectlist.insert.js +++ b/src/widget/multiselectlist/multiselectlist.insert.js @@ -281,7 +281,7 @@ BI.MultiSelectInsertList = BI.inherit(BI.Single, { var map = this._makeMap(this.storeValue.value); BI.each(res.value, function (i, v) { if (!map[v]) { - self.storeValue.value.push(v); + BI.pushDistinct(self.storeValue.value, v); map[v] = v; } }); diff --git a/src/widget/multiselectlist/multiselectlist.insert.nobar.js b/src/widget/multiselectlist/multiselectlist.insert.nobar.js index 34576be601..bbb6c23bbf 100644 --- a/src/widget/multiselectlist/multiselectlist.insert.nobar.js +++ b/src/widget/multiselectlist/multiselectlist.insert.nobar.js @@ -285,7 +285,7 @@ BI.MultiSelectInsertNoBarList = BI.inherit(BI.Single, { var map = this._makeMap(this.storeValue.value); BI.each(res.value, function (i, v) { if (!map[v]) { - self.storeValue.value.push(v); + BI.pushDistinct(self.storeValue.value, v); map[v] = v; } }); diff --git a/src/widget/multiselectlist/multiselectlist.js b/src/widget/multiselectlist/multiselectlist.js index e5bc5b772f..e4a046793b 100644 --- a/src/widget/multiselectlist/multiselectlist.js +++ b/src/widget/multiselectlist/multiselectlist.js @@ -301,7 +301,7 @@ BI.MultiSelectList = BI.inherit(BI.Widget, { var map = this._makeMap(this.storeValue.value); BI.each(res.value, function (i, v) { if (!map[v]) { - self.storeValue.value.push(v); + BI.pushDistinct(self.storeValue.value, v); map[v] = v; } }); diff --git a/src/widget/singleselect/trigger/searcher.singleselect.js b/src/widget/singleselect/trigger/searcher.singleselect.js index f49188e411..aa5ece93b7 100644 --- a/src/widget/singleselect/trigger/searcher.singleselect.js +++ b/src/widget/singleselect/trigger/searcher.singleselect.js @@ -108,7 +108,7 @@ BI.SingleSelectSearcher = BI.inherit(BI.Widget, { }, getKeyword: function () { - return this.editor.getValue(); + return this.editor.getKeyword(); }, hasMatched: function () {