diff --git a/src/index.ts b/src/index.ts index d62f17e..2bf0c45 100644 --- a/src/index.ts +++ b/src/index.ts @@ -153,8 +153,9 @@ export class MvcValidationProviders { return false; } - // Default behavior otherwise. - return Boolean(value); + + // Default behavior otherwise (trim ensures whitespace only is not seen as valid). + return Boolean(value?.trim()); } /**