fix: number coercion
This commit is contained in:
parent
89dc685d62
commit
c67a1b23ac
|
@ -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)}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user