From 15084649b9b7c41c1e69e562195fdd47b0aadfbb Mon Sep 17 00:00:00 2001 From: Tangjinxia <1119518763@qq.com> Date: Wed, 17 Mar 2021 17:06:00 +0800 Subject: [PATCH] =?UTF-8?q?=E6=97=A0jira=E4=BB=BB=E5=8A=A1=20style:?= =?UTF-8?q?=E5=88=A0=E9=99=A4=E5=A4=9A=E4=BD=99=E7=9A=84=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../trigger/searcher.multiselect.insert.js | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) diff --git a/src/widget/multiselect/trigger/searcher.multiselect.insert.js b/src/widget/multiselect/trigger/searcher.multiselect.insert.js index 4ad265126..ffb152c81 100644 --- a/src/widget/multiselect/trigger/searcher.multiselect.insert.js +++ b/src/widget/multiselect/trigger/searcher.multiselect.insert.js @@ -55,9 +55,6 @@ BI.MultiSelectInsertSearcher = BI.inherit(BI.Widget, { popup: BI.extend({ type: "bi.multi_select_search_insert_pane", - ref: function (_ref) { - self.searchPane = _ref; - }, valueFormatter: o.valueFormatter, keywordGetter: function () { return self.editor.getValue(); @@ -73,19 +70,7 @@ BI.MultiSelectInsertSearcher = BI.inherit(BI.Widget, { listeners: [{ eventName: BI.MultiSelectSearchInsertPane.EVENT_ADD_ITEM, action: function () { - var keyword = self.searcher.getKeyword(); - self.storeValue = self.getValue(); - if (!self.searcher.hasMatched()) { - if (self.storeValue.type === BI.Selection.Multi) { - BI.pushDistinct(self.storeValue.value, keyword); - } - self.searchPane.setVisible(false); - self.setValue(self.storeValue); - self.populate(); - if (self.storeValue.type === BI.Selection.Multi) { - self.fireEvent(BI.MultiSelectInsertSearcher.EVENT_ADD_ITEM); - } - } + self.fireEvent(BI.MultiSelectInsertSearcher.EVENT_ADD_ITEM); } }] }, o.popup),