fix: number coercion

This commit is contained in:
cha0s 2020-06-22 05:17:47 -05:00
parent 89dc685d62
commit c67a1b23ac

View File

@ -34,7 +34,7 @@ const Number = ({
const {value: number} = event.target; const {value: number} = event.target;
// eslint-disable-next-line no-restricted-globals // eslint-disable-next-line no-restricted-globals
if (!isNaN(number)) { if (!isNaN(number)) {
onChange('' === number ? 0 : number, event); onChange('' === number ? 0 : parseInt(number, 10), event);
} }
}} }}
// onWheel={(e) => (e.preventDefault(), false)} // onWheel={(e) => (e.preventDefault(), false)}