Browse Source

Merge pull request #934 in VISUAL/fineui from ~WINDY/fineui:master to master

* commit '7aaefa7dfc900079168c168adcee85ca6bd2a08f':
  无JIRA任务 对于errorText是function,判断值是空格的统一处理
es6
windy 5 years ago
parent
commit
9f2d3c290e
  1. 2
      src/base/single/editor/editor.js

2
src/base/single/editor/editor.js

@ -240,7 +240,7 @@ BI.Editor = BI.inherit(BI.Single, {
var o = this.options;
var errorText = o.errorText;
if (BI.isFunction(errorText)) {
errorText = errorText(this.editor.getValue());
errorText = errorText(BI.trim(this.editor.getValue()));
}
if (!this.disabledError && BI.isKey(errorText)) {
BI.Bubbles[b ? "show" : "hide"](this.getName(), errorText, this, {

Loading…
Cancel
Save