RobinHerbots / Inputmask

Input Mask plugin
https://robinherbots.github.io/Inputmask/
MIT License
6.39k stars 2.17k forks source link

removeMaskOnSubmit doesn't works if value=0 #1443

Open billmn opened 7 years ago

billmn commented 7 years ago

Hi guys, I don't understand why the removeMaskOnSubmit doesn't works on input with value = 0 (zero).

This is inputs: schermata 2016-11-19 alle 09 57 32

These are inputs after submit:

schermata 2016-11-19 alle 09 58 14

My configuration (InputMask ver. 3.3.3):

$('.input-currency').inputmask('numeric', {
    digits: 2,
    autoGroup: true,
    radixPoint: ',',
    autoUnmask: true,
    rightAlign: false,
    groupSeparator: '.',
    unmaskAsNumber: true,
    digitsOptional: false,
    showMaskOnHover: false,
    showMaskOnFocus: false,
    removeMaskOnSubmit: true
});

Why Field 3 is not unmasked? If I set a value that is not ZERO it works fine.

RobinHerbots commented 7 years ago

@billmn ,

I will have a look at it.