react-numeric-input
react-numeric-input copied to clipboard
Format not validating min/max values
When using it like this:
<NumericInput min={-10} max={10} step={0.1} value={0} format={numericInputFormat} />
where:
function numericInputFormat(number: number): string { return number + '%'; }
the format function is called after the validation, but with the invalid number and not the max value. if I put 15, for example, the value will be changed to 10 and then will change again to 15.