From c67a1b23aca118eb3f29beadd1057292352a90d6 Mon Sep 17 00:00:00 2001 From: cha0s Date: Mon, 22 Jun 2020 05:17:47 -0500 Subject: [PATCH] fix: number coercion --- src/client/types/number.type-renderer.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/client/types/number.type-renderer.jsx b/src/client/types/number.type-renderer.jsx index d078b8f..9a85e85 100644 --- a/src/client/types/number.type-renderer.jsx +++ b/src/client/types/number.type-renderer.jsx @@ -34,7 +34,7 @@ const Number = ({ const {value: number} = event.target; // eslint-disable-next-line no-restricted-globals if (!isNaN(number)) { - onChange('' === number ? 0 : number, event); + onChange('' === number ? 0 : parseInt(number, 10), event); } }} // onWheel={(e) => (e.preventDefault(), false)}