jquense / react-widgets

Polished, feature rich, accessible form inputs built with React
http://jquense.github.io/react-widgets/
MIT License
2.34k stars 395 forks source link

Possible bug for number picker min when manually entering a number in the field #1107

Open STEjovanovicFAN opened 2 years ago

STEjovanovicFAN commented 2 years ago

It seems like number picker min value is not working as expected.

If you navigate here: https://jquense.github.io/react-widgets/docs/NumberPicker/#min

Manually enter -5 in the number picker and click off. As expected it reverts to 0 because the min value is set to 0. Now if you enter -5 again you would expect it to be set to 0. But instead of the input getting set to 0 it stays -5.

Is this working as expected or is this a bug with number picker min?