Browse Source

Revert "无JIRA bi.search_editor 在有初始值的时候显示clear按钮"

This reverts commit 172f50c994.
es6
zsmj 3 years ago
parent
commit
34b277068e
  1. 5
      src/widget/editor/editor.search.js

5
src/widget/editor/editor.search.js

@ -32,8 +32,7 @@ BI.SearchEditor = BI.inherit(BI.Widget, {
this.clear = BI.createWidget({
type: "bi.icon_button",
stopEvent: true,
cls: "close-font",
invisible: !o.value
cls: "close-font"
});
this.clear.on(BI.IconButton.EVENT_CHANGE, function () {
self.setValue("");
@ -124,6 +123,8 @@ BI.SearchEditor = BI.inherit(BI.Widget, {
this.editor.on(BI.Editor.EVENT_STOP, function () {
self.fireEvent(BI.SearchEditor.EVENT_STOP);
});
this.clear.invisible();
},
_checkClear: function () {

Loading…
Cancel
Save