Skip to content

Numeric input min prop is causing rounded value #5877

Answered by adidahiya
tgreen7 asked this question in Q&A
Discussion options

You must be logged in to vote

I would want the user to see the exact values coming in.

Yes, I get that, and the current behavior is surprising from a developer perspective... but still think there's potential for confusion after the initial render in your proposed use case because rounding will occur after the user clicks increment/decrement.

You can work around this by setting the step size props, like minorStepSize={0.05}

Replies: 4 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by adidahiya
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
2 participants
Converted from issue

This discussion was converted from issue #4024 on January 24, 2023 15:09.