Hello,
We use your products in European countries, where the decimal separator is "," and the grouping separator is "." or " ".
When creating a NumberField as follows:
new NumberField({
appendTo : targetElement,
width : 150,
label : 'Enter a number',
style : 'margin-right: .5em',
format: "9.999,#",
step: 0.1
});
Typing into the field creates errors (see attachments).
When creating a NumberField as follows:
new NumberField({
appendTo : targetElement,
width : 150,
label : 'Enter a number',
style : 'margin-right: .5em',
format: {
fraction: [0, 1],
decimalSeparator: ",",
groupSeparator: "."
},
step: 0.1
});
Numbers are displayed correctly, but:
Typing "1.2" is parsed as "1,2" => I would expect "12".
Typing "1,2" is parsed as "12" => I would expect "1,2".
So the parsing and the formatting are not consistent.
Am I missing something or is this a bug?
Best regards,