validate length for textarea too

This commit is contained in:
Matt Hill
2023-04-21 09:24:59 -06:00
committed by Aiden McClelland
parent 94cdaf5314
commit 6fed6c8d30

View File

@@ -193,6 +193,8 @@ function textareaValidators(spec: ValueSpecTextarea): ValidatorFn[] {
validators.push(Validators.required)
}
validators.push(textLengthInRange(spec.minLength, spec.maxLength))
return validators
}