From 9b1c354ca4b1ecabd60f7569d2e46e7862c1cc23 Mon Sep 17 00:00:00 2001 From: zsmj Date: Thu, 12 May 2022 14:35:27 +0800 Subject: [PATCH] =?UTF-8?q?DESIGN-4103=20feat:=20=E7=82=B9=E5=87=BB?= =?UTF-8?q?=E6=B8=85=E9=99=A4=E4=B9=8B=E5=90=8E=E9=9C=80=E8=A6=81=E5=AF=B9?= =?UTF-8?q?=E5=A4=96=E6=8A=9B=E4=BA=8B=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../combo/searchtextvaluecombo/combo.searchtextvalue.js | 8 +------- src/case/combo/textvaluecombo/combo.textvalue.js | 1 + 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/src/case/combo/searchtextvaluecombo/combo.searchtextvalue.js b/src/case/combo/searchtextvaluecombo/combo.searchtextvalue.js index bba605576..b3e6ddc95 100644 --- a/src/case/combo/searchtextvaluecombo/combo.searchtextvalue.js +++ b/src/case/combo/searchtextvaluecombo/combo.searchtextvalue.js @@ -55,17 +55,11 @@ BI.SearchTextValueCombo = BI.inherit(BI.Widget, { self.combo.hideView(); self.fireEvent(BI.SearchTextValueCombo.EVENT_CHANGE); } - }, { - eventName: BI.SearchTextValueTrigger.EVENT_CLEAR, - action: function () { - self.setValue(); - self.combo.hideView(); - self.fireEvent(BI.SearchTextValueCombo.EVENT_CHANGE); - } }, { eventName: BI.SearchTextValueTrigger.EVENT_CLEAR, action: function () { self._clear(); + self.fireEvent(BI.SearchTextValueCombo.EVENT_CHANGE); } }] }, diff --git a/src/case/combo/textvaluecombo/combo.textvalue.js b/src/case/combo/textvaluecombo/combo.textvalue.js index 69075f739..c49785126 100644 --- a/src/case/combo/textvaluecombo/combo.textvalue.js +++ b/src/case/combo/textvaluecombo/combo.textvalue.js @@ -41,6 +41,7 @@ BI.TextValueCombo = BI.inherit(BI.Widget, { eventName: BI.SelectTextTrigger.EVENT_CLEAR, action: function () { self._clear(); + self.fireEvent(BI.TextValueCombo.EVENT_CHANGE); } } ],