Open torkashvand opened 4 months ago
Mohammed Hi Wouter We found a workaround for this in our side by changing the field to string and writing some validations but the field was really float! so I would say if you have time you can have a look to this issue
Wouter 12:13 PM Ok, I will discuss this with the developers. We are investigating to move the dynamic form instead of uniforms, so we might consider fixing in the new dynamic forms (might take a while).
What happened?
The HTML type="number" input strips the decimal point from our float type (for example: longitude coordinates), leading to incorrect data handling for floating-point numbers.
Steps to Reproduce:
define an annotated field
then in the generated HTML form enter a floating-point number in the longitude input field. Observe that the decimal point is removed or rounded.
Expected Behavior: Users should be able to input longitude coordinates with decimal precision.
Version
2.2.1
What python version are you seeing the problem on?
Python 3.12
Relevant log output
No response