leandrobortoli / vaadin-inputmask

Vaadin Extension to allow masked inputs.
https://vaadin-inputmask-demo.herokuapp.com/
Apache License 2.0
4 stars 2 forks source link

Bug: AutoUnmask doesn't respect RadixPoint #4

Open FoxyBOA opened 6 years ago

FoxyBOA commented 6 years ago

If you type "1 000 000,00" amountField.getValue() will be "1000000,00" (why comma instead of typical dot).

I expect to have "1000000.00" with setAutoUnmask(true) and "1 000 000,00" with setAutoUnmask(false)

        TextField amountField = new TextField("Amount:");
        ResetButtonForTextField.extend(amountField);
        InputMask amountInputMask = new InputMask(Alias.CURRENCY);
        amountInputMask.setAutoUnmask(true);
        amountInputMask.setGroupSeparator(" ");
        amountInputMask.setRadixPoint(",");