Merge pull request #161 from glyptodon/fix-numeric-fields
GUAC-1179: Fix handling of numeric fields
This commit is contained in:
commit
df5741e934
1 file changed
+1
-1
@@ -183,7 +183,7 @@ angular.module('form').directive('guacFormField', [function formField() {
|
|||||||
|
|
||||||
// Coerce numeric strings to numbers
|
// Coerce numeric strings to numbers
|
||||||
if ($scope.field.type === 'NUMERIC')
|
if ($scope.field.type === 'NUMERIC')
|
||||||
$scope.typedValue = (modelValue ? Number($scope.field.value) : null);
|
$scope.typedValue = (modelValue ? Number(modelValue) : null);
|
||||||
|
|
||||||
// Coerce boolean strings to boolean values
|
// Coerce boolean strings to boolean values
|
||||||
else if ($scope.field.type === 'BOOLEAN')
|
else if ($scope.field.type === 'BOOLEAN')
|
||||||
|
|||||||
Reference in new issue
Block a user