Browse Source

无JIRA任务 对于errorText是function,判断值是空格的统一处理

master
windy 6 years ago
parent
commit
7aaefa7dfc
  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