Browse Source

Pull request #2416: 无JIRA任务 file setEnable问题

Merge in VISUAL/fineui from ~FAY/fineui:master to master

* commit 'ddac71d40431ed3b1c3518345aa2913fbbf204f0':
  format
  无JIRA任务 file setEnable问题
es6
fay 3 years ago
parent
commit
04a59a51bb
  1. 4
      src/base/single/input/file.js

4
src/base/single/input/file.js

@ -696,9 +696,9 @@
_setEnable: function (enable) { _setEnable: function (enable) {
BI.File.superclass._setEnable.apply(this, arguments); BI.File.superclass._setEnable.apply(this, arguments);
if (enable === true) { if (enable === true) {
this.element.attr("disabled", "disabled");
} else {
this.element.removeAttr("disabled"); this.element.removeAttr("disabled");
} else {
this.element.attr("disabled", "disabled");
} }
} }
}); });

Loading…
Cancel
Save