mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-06 13:17:41 +00:00
GUAC-830: Allow zero for numeric fields (bad logic).
This commit is contained in:
@@ -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