Required textarea and null value


#1

If I have textarea with required value, and initial value is null, then validate function returns success.

Sample is there: https://snippet.dhtmlx.com/74ixpjk1

replacing textarea’s getValue method from:

getValue() {
  return typeof this.config.value === "undefined" ? "" : String(this.config.value);
}

to:

getValue() {
  if (this.config.value === null) return this.config.value;
  return typeof this.config.value === "undefined" ? "" : String(this.config.value);
}

solves problem


#2

Thank you for your report. The problem is confirmed. We’ll try to fix it in one of the future updates.