|
|
|
@ -212,11 +212,12 @@ export class TextAreaEditor extends Single {
|
|
|
|
|
|
|
|
|
|
_setErrorVisible(b) { |
|
|
|
|
const { adjustYOffset, adjustXOffset, offsetStyle } = this.options; |
|
|
|
|
if (isFunction(this.options.errorText)) { |
|
|
|
|
this.options.errorText = this.options.errorText(trim(this.getValue())); |
|
|
|
|
let errorText = this.options.errorText; |
|
|
|
|
if (isFunction(errorText)) { |
|
|
|
|
errorText = errorText(trim(this.getValue())); |
|
|
|
|
} |
|
|
|
|
if (!this.disabledError && isKey(this.options.errorText)) { |
|
|
|
|
Bubbles[b ? "show" : "hide"](this.getName(), this.options.errorText, this, { |
|
|
|
|
if (!this.disabledError && isKey(errorText)) { |
|
|
|
|
Bubbles[b ? "show" : "hide"](this.getName(), errorText, this, { |
|
|
|
|
adjustYOffset, |
|
|
|
|
adjustXOffset, |
|
|
|
|
offsetStyle, |
|
|
|
|