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