-
-
Notifications
You must be signed in to change notification settings - Fork 145
dcc.Input bug with decimal values #169
Comments
Looks like this bug was added in #100 , here: dash-core-components/src/components/Input.react.js Lines 34 to 36 in 9478e4f
For now, you can use |
I think the best solution here is to debounce |
I agree with @pope1ni, the input boxes shouldn't send numbers to the server before the user has finished typing them. I'm having this trouble when entering multi digit numbers. For example, if I want to enter 20 manually, 2 gets sent to the server before I finish typing. |
Any timeline for this being fixed? It is very annoying! I'd rather not do the casting server-side because it makes it harder to let the user know what went wrong to fix it. |
Version |
@valentijnnieman - Did .37 fix the issue? I'm using .38 and seeing this same bug. |
@vantaka2 - Would you mind creating a new issue with a small, reproducable example? |
when using the input component with numbers and with a callback
Try entering decimal values with some 0s in the decimal part, for instance 0.001 or 4.1004:
When the callback is triggered, any ending 0 will be removed preventing you to finish writing the number
The text was updated successfully, but these errors were encountered: