aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/Widgets.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Widgets.js b/src/Widgets.js
index 69b444c0..c5ab7c6f 100644
--- a/src/Widgets.js
+++ b/src/Widgets.js
@@ -230,7 +230,7 @@ TextController.prototype = {
var isValidationError = false;
view.removeAttribute('ng-error');
if (this.required) {
- isValidationError = !(value && value.length > 0);
+ isValidationError = !(value && $.trim(value).length > 0);
}
var errorText = isValidationError ? "Required Value" : null;
if (!isValidationError && this.validator && value) {