From 128f58ce4846e80c359ada29cca8802eeea2497a Mon Sep 17 00:00:00 2001 From: windy <1374721899@qq.com> Date: Fri, 4 Jun 2021 14:03:29 +0800 Subject: [PATCH] =?UTF-8?q?JSY-7060=20fix:=20stopEditor=E4=BA=8B=E4=BB=B6?= =?UTF-8?q?=E5=8F=82=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/widget/editor/editor.search.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/widget/editor/editor.search.js b/src/widget/editor/editor.search.js index b2ae7cb02..5ab35b31e 100644 --- a/src/widget/editor/editor.search.js +++ b/src/widget/editor/editor.search.js @@ -35,7 +35,7 @@ BI.SearchEditor = BI.inherit(BI.Widget, { }); this.clear.on(BI.IconButton.EVENT_CHANGE, function () { self.setValue(""); - self.fireEvent(BI.Controller.EVENT_CHANGE, BI.Events.STOPEDIT); + self.fireEvent(BI.Controller.EVENT_CHANGE, BI.Events.STOPEDIT, self.getValue()); // 从有内容到无内容的清空也是一次change self.fireEvent(BI.SearchEditor.EVENT_CHANGE); self.fireEvent(BI.SearchEditor.EVENT_CLEAR);