GUAC-830: Allow zero for numeric fields (bad logic).

This commit is contained in:
Michael Jumper
2015-08-21 19:20:25 -07:00
parent f015d9aed6
commit b253a11483

View File

@@ -34,7 +34,7 @@ angular.module('form').controller('numberFieldController', ['$scope',
// Update string value in model when typed value is changed
$scope.$watch('typedValue', function typedValueChanged(typedValue) {
$scope.model = (typedValue ? typedValue.toString() : '');
$scope.model = ((typedValue || typedValue === 0) ? typedValue.toString() : '');
});
}]);