You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The decimal separator for bigDecimalField cannot be anything other than a comma character, even if it is configured in the locale format properties or in the NumberFormat field annotation.
Steps To Reproduce
Create a project with English and non-English locales (for example, Vietnamese or Russian).
Run the project in a non-English locale, open the detail view, try entering 1,234.56789 in the amount field.
Current Behavior
Can't enter a dot. But if you type 1234.56789, it will be saved and displayed in the list view as 1,234.56789.
If you enter 1,234,56789, it will be stored as a empty value.
Expected Behavior
You can enter the entire number with group and decimal separators.
Note:
If you are logging in with an English locale, you can enter a dot in the field, but not a comma.
Vaadin's BigDecimalField, IntegerField and other number fields have no format attribute. For example BigDecimalField is <input type="text" inputmode="decimal"> and works according to inputmode attribute.
Environment
Jmix version: 2.1.3
Bug Description
The decimal separator for bigDecimalField cannot be anything other than a comma character, even if it is configured in the locale format properties or in the NumberFormat field annotation.
Steps To Reproduce
Current Behavior
Can't enter a dot. But if you type 1234.56789, it will be saved and displayed in the list view as 1,234.56789.
If you enter 1,234,56789, it will be stored as a empty value.
Expected Behavior
You can enter the entire number with group and decimal separators.
Note:
If you are logging in with an English locale, you can enter a dot in the field, but not a comma.
Sample Project
BigDecimalLocale.zip
The text was updated successfully, but these errors were encountered: