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 Michał Cieślak
parent 268ff0bb13
commit 17ae4263cd
1 changed files with 1 additions and 1 deletions

View File

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