From c1bdcf24aa54108aed2cc20f1c2697d4ecb5c347 Mon Sep 17 00:00:00 2001 From: J Guthrie Date: Fri, 3 Aug 2018 01:33:29 +0100 Subject: [PATCH] Changed parseInt to parseFloat --- modules/ui/fields/input.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/ui/fields/input.js b/modules/ui/fields/input.js index 73023d891..b8c98df56 100644 --- a/modules/ui/fields/input.js +++ b/modules/ui/fields/input.js @@ -92,7 +92,7 @@ export function uiFieldText(field, context) { // parse as a number function parsed(val) { - return parseInt(val || 0, 10) || 0; + return parseFloat(val || 0, 10) || 0; } // clamp number to min/max