From 58d78b370f8cb826ec32557e8504e4ed93a03a74 Mon Sep 17 00:00:00 2001 From: windy <1374721899@qq.com> Date: Wed, 23 Jun 2021 17:18:03 +0800 Subject: [PATCH] =?UTF-8?q?BI-88138=20fix:=20=E4=BA=8B=E4=BB=B6=E8=A1=A5?= =?UTF-8?q?=E5=85=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/widget/multiselect/multiselect.insert.combo.js | 2 ++ src/widget/multiselect/multiselect.insert.combo.nobar.js | 2 ++ 2 files changed, 4 insertions(+) diff --git a/src/widget/multiselect/multiselect.insert.combo.js b/src/widget/multiselect/multiselect.insert.combo.js index 5f025448b..db225e95f 100644 --- a/src/widget/multiselect/multiselect.insert.combo.js +++ b/src/widget/multiselect/multiselect.insert.combo.js @@ -75,6 +75,7 @@ BI.MultiSelectInsertCombo = BI.inherit(BI.Single, { }); this.trigger.on(BI.MultiSelectInsertTrigger.EVENT_PAUSE, function () { self._addItem(assertShowValue, true); + self.fireEvent(BI.MultiSelectInsertCombo.EVENT_ADD_ITEM, this.getSearcher().getKeyword()); }); this.trigger.on(BI.MultiSelectInsertTrigger.EVENT_SEARCHING, function (keywords) { var last = BI.last(keywords); @@ -473,5 +474,6 @@ BI.MultiSelectInsertCombo.EVENT_STOP = "EVENT_STOP"; BI.MultiSelectInsertCombo.EVENT_SEARCHING = "EVENT_SEARCHING"; BI.MultiSelectInsertCombo.EVENT_CLICK_ITEM = "EVENT_CLICK_ITEM"; BI.MultiSelectInsertCombo.EVENT_CONFIRM = "EVENT_CONFIRM"; +BI.MultiSelectInsertCombo.EVENT_ADD_ITEM = "EVENT_ADD_ITEM"; BI.shortcut("bi.multi_select_insert_combo", BI.MultiSelectInsertCombo); diff --git a/src/widget/multiselect/multiselect.insert.combo.nobar.js b/src/widget/multiselect/multiselect.insert.combo.nobar.js index 8f289fdb9..2fb735ba6 100644 --- a/src/widget/multiselect/multiselect.insert.combo.nobar.js +++ b/src/widget/multiselect/multiselect.insert.combo.nobar.js @@ -70,6 +70,7 @@ BI.MultiSelectInsertNoBarCombo = BI.inherit(BI.Single, { }); this.trigger.on(BI.MultiSelectInsertTrigger.EVENT_PAUSE, function () { self._addItem(assertShowValue, true); + self.fireEvent(BI.MultiSelectInsertNoBarCombo.EVENT_ADD_ITEM, this.getSearcher().getKeyword()); }); this.trigger.on(BI.MultiSelectInsertTrigger.EVENT_SEARCHING, function (keywords) { var last = BI.last(keywords); @@ -467,5 +468,6 @@ BI.extend(BI.MultiSelectInsertNoBarCombo, { }); BI.MultiSelectInsertNoBarCombo.EVENT_CONFIRM = "EVENT_CONFIRM"; +BI.MultiSelectInsertNoBarCombo.EVENT_ADD_ITEM = "EVENT_ADD_ITEM"; BI.shortcut("bi.multi_select_insert_no_bar_combo", BI.MultiSelectInsertNoBarCombo);