diff --git a/src/client/types/number.type-renderer.jsx b/src/client/types/number.type-renderer.jsx index 76a6429..d078b8f 100644 --- a/src/client/types/number.type-renderer.jsx +++ b/src/client/types/number.type-renderer.jsx @@ -30,7 +30,13 @@ const Number = ({ : ( <> onChange(event.target.value, event)} + onChange={(event) => { + const {value: number} = event.target; + // eslint-disable-next-line no-restricted-globals + if (!isNaN(number)) { + onChange('' === number ? 0 : number, event); + } + }} // onWheel={(e) => (e.preventDefault(), false)} type="text" value={value}