GUAC-830: Allow zero for numeric fields (bad logic).
This commit is contained in:
1 parent
f015d9aed6
commit
b253a11483
1 file changed
+1
-1
@@ -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() : '');
|
||||
});
|
||||
|
||||
}]);
|
||||
Reference in new issue
Block a user