Is there a way to use floats in NumberInput without precision (atlernativly remove trailing zeros)? #2541
Unanswered
PointSingularity
asked this question in
Q&A
Replies: 1 comment 2 replies
-
|
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Here is my code:
If I use this for this input
after blur it goes to
But if I use precision, there are a lot of trailing zeros:
Basically my question is can we have the best of both worlds, where we would type '225,23' and it would stay that way, without using precision, but still having the default behavior of only accepting numbers and the decimal separator as valid input?
Beta Was this translation helpful? Give feedback.
All reactions