mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-03-30 12:11:56 +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(Validators.required)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
validators.push(textLengthInRange(spec.minLength, spec.maxLength))
|
||||||
|
|
||||||
return validators
|
return validators
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user