Given this example for version v12.0p_2019-12-31/LGPL Development Only (2019-12-31):
Using the localeFloat type and setting decimalSymbol in the NumberUtil class to "," causes the 3th and consecutive decimals to disappear when focusing the item. This does not happen for float and decimal types. And - more important - not when the decimalSymbol is "." (the default).
With decimalSymbol set to "," (incorrect):
With decimalSymbol set to "." (correct):
Code:
isc.NumberUtil.addClassProperties({ // change to "." and "," respectively will make it work correct again decimalSymbol: ',', groupingSymbol: '.' }); isc.DynamicForm.create({ autoFocus: true, fields: [ { defaultValue: 1234.56789, format: ',0.00000', type: 'localeFloat', title: 'localeFloat' }, // optional fields that work correctly with both decimal symbols { defaultValue: 1234.56789, format: ',0.00000', type: 'float', title: 'float' }, { defaultValue: 1234.56789, format: ',0.00000', type: 'decimal', title: 'decimal' } ] });
With decimalSymbol set to "," (incorrect):
With decimalSymbol set to "." (correct):
Comment