fix(StatusMinLengthValidator): Check if the text contains only whitespaces (#778)

Fixes #6304
This commit is contained in:
Michał Iskierko 2022-07-21 23:27:31 +02:00 committed by GitHub
parent bce53e9ccc
commit 08f8cd60c4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -13,7 +13,7 @@ StatusValidator {
}
validate: function (value) {
return value.length >= minLength ? true : {
return value.length >= minLength && value.trim().length > 0 ? true : {
min: minLength,
actual: value.length
}