mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-03-26 18:31:52 +00:00
validate length for textarea too
This commit is contained in:
committed by
Aiden McClelland
parent
94cdaf5314
commit
6fed6c8d30
@@ -193,6 +193,8 @@ function textareaValidators(spec: ValueSpecTextarea): ValidatorFn[] {
|
||||
validators.push(Validators.required)
|
||||
}
|
||||
|
||||
validators.push(textLengthInRange(spec.minLength, spec.maxLength))
|
||||
|
||||
return validators
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user