You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What you were expecting:
I expected that the NumberInput component supports min and max props as specified in the documentation.
What happened instead:
It seems that the input does not prevent the user to input an out of range value.
Related code:
I added the code needed to reproduce the issue in that codesandbox.
You can find the component inside post's Miscellaneus section (field "Average Note") https://codesandbox.io/s/misty-frog-2u2vu
However, this will only affect the arrows - users will still be able to enter a numeric value higher than the max ans lower than the min. You should add a validate function, as explained by @kopax .
What you were expecting:
I expected that the NumberInput component supports min and max props as specified in the documentation.
What happened instead:
It seems that the input does not prevent the user to input an out of range value.
Related code:
I added the code needed to reproduce the issue in that codesandbox.
You can find the component inside post's Miscellaneus section (field "Average Note")
https://codesandbox.io/s/misty-frog-2u2vu
Other information:
It can be a misunderstanding reading the documentation, or maybe it is better to add some usage examples.
The text was updated successfully, but these errors were encountered: