From c2c7c06083e20480904aeba92b888c847a389b6d Mon Sep 17 00:00:00 2001 From: zsmj Date: Tue, 14 Jun 2022 10:58:30 +0800 Subject: [PATCH] =?UTF-8?q?=E6=97=A0JIRA=20fix:=20=E8=A7=A3=E5=86=B3?= =?UTF-8?q?=E5=A4=8D=E9=80=89=E4=B8=8B=E6=8B=89=E6=A1=86=E6=97=B6=E5=BA=8F?= =?UTF-8?q?=E4=B8=8D=E4=B8=80=E8=87=B4=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/widget/multiselect/multiselect.combo.js | 4 +--- src/widget/multiselect/multiselect.insert.combo.js | 4 +--- .../multiselect/trigger/searcher.multiselect.insert.js | 6 ++---- 3 files changed, 4 insertions(+), 10 deletions(-) diff --git a/src/widget/multiselect/multiselect.combo.js b/src/widget/multiselect/multiselect.combo.js index a564dce78..23d5385b8 100644 --- a/src/widget/multiselect/multiselect.combo.js +++ b/src/widget/multiselect/multiselect.combo.js @@ -284,13 +284,11 @@ BI.MultiSelectCombo = BI.inherit(BI.Single, { var self = this; var o = this.options; o.itemsCreator(op, function (res) { - var args = Array.prototype.slice.call(arguments); if (op.times === 1 && BI.isNotNull(op.keywords)) { // 预防trigger内部把当前的storeValue改掉 self.trigger.setValue(BI.deepClone(self.getValue())); } - args.push(op); - callback.apply(self, args); + callback.apply(self, arguments); }); }, diff --git a/src/widget/multiselect/multiselect.insert.combo.js b/src/widget/multiselect/multiselect.insert.combo.js index 8001ada8d..b1b4a202e 100644 --- a/src/widget/multiselect/multiselect.insert.combo.js +++ b/src/widget/multiselect/multiselect.insert.combo.js @@ -285,13 +285,11 @@ BI.MultiSelectInsertCombo = BI.inherit(BI.Single, { _itemsCreator4Trigger: function (op, callback) { var self = this, o = this.options; o.itemsCreator(op, function (res) { - var args = Array.prototype.slice.call(arguments); if (op.times === 1 && BI.isNotNull(op.keywords)) { // 预防trigger内部把当前的storeValue改掉 self.trigger.setValue(BI.deepClone(self.getValue())); } - args.push(op); - callback.apply(self, args); + callback.apply(self, arguments); }); }, diff --git a/src/widget/multiselect/trigger/searcher.multiselect.insert.js b/src/widget/multiselect/trigger/searcher.multiselect.insert.js index 6fe8e0375..36b3a115f 100644 --- a/src/widget/multiselect/trigger/searcher.multiselect.insert.js +++ b/src/widget/multiselect/trigger/searcher.multiselect.insert.js @@ -62,12 +62,10 @@ BI.MultiSelectInsertSearcher = BI.inherit(BI.Widget, { itemsCreator: function (op, callback) { var keyword = self.editor.getKeyword(); op.keywords = [keyword]; - self.op = op; this.setKeyword(keyword); o.itemsCreator(op, function () { - var args = Array.prototype.slice.call(arguments); - if (BI.last(args) === self.op) { - callback.apply(null, args); + if (keyword === self.editor.getValue()) { + callback.apply(null, arguments); } }); },