View Full Version : [1.1 beta 2] Number Field Precision Bug

3 Jul 2007, 7:00 AM
Precision verification seem to have been added to Form.NumberField in beta2, but it doesn't seem to be working correctly. I have a field with allowDecimals = true, and decimalPrecision defaults to 2, but if a person types 10.00 into the numberField, onBlur runs the fixPrecision function which is returning 10, not 10.00.

I think the final piece of the fixPrecision function needs to be a formatting to include the correct number of decimal places in case they don't exist after the calculation.