Browse Source

JSY-7060 fix: stopEditor事件参数

es6
windy 4 years ago
parent
commit
128f58ce48
  1. 2
      src/widget/editor/editor.search.js

2
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);

Loading…
Cancel
Save