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

Wrap around when reaching max/min

Open willbee28 opened this issue 6 years ago • 0 comments

I would really like it if there was some prop or some way to make the numeric input wrap around when going over the max or under the min. such as with min=0 and max=100, if the up was clicked at 100, it'd go back to 0. You can implement this manually with the onChange handler, but it is not clean, since the onChange is triggered on each number change, if I start to type 1900, the first 190 will trigger and it go down to 1.

willbee28 avatar Dec 28 '18 16:12 willbee28