vlad-ignatov/react-numeric-input

Wrap around when reaching max/min

Opened this issue · 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.