View Full Version : Ext.form.field.Number returns custom decimalSeperator

24 May 2011, 2:44 AM
When using a custom decimalSeperator in Ext.form.field.Number (e.g. to localize the output), it always returns the formatted value.
This breaks functuality if your trying to work with a float, since the seperator is simply stripped and you get a plain int.


var number = new Ext.field.number.Field({
decimalSeperator: ',',
value: 10.2

number.getValue() // return 10,2

record.set('someFloatField', number.getValue()); // sets 102

Edit: This is the same for Ext.form.field.Date. I'd guess it happens for every fieldtype