react-numeric-input icon indicating copy to clipboard operation
react-numeric-input copied to clipboard

Format not validating min/max values

Open adiTrullion opened this issue 3 years ago • 0 comments

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.

adiTrullion avatar Mar 31 '22 07:03 adiTrullion