RobinHerbots / Inputmask

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

Leading zeros removed when first digit deleted #2359

Open ghost opened 4 years ago

ghost commented 4 years ago
pqr commented 2 years ago

Confirm the same issue! Looking forward for a solution.

kamilpinas commented 2 years ago

Same here ! Looking for solution too I tried using stripLeadingZeroes:false prop but it costs problems like this:

Entering '1':

when empty input : 0.00 => 01.00 after backspace to 0.00: 0.00 => 10.00

version: 5.0.7-beta.29 browser : chrome/opera my settings:

        alias:"decimal",
        groupSeparator: '',
        digits: 2,
        digitsOptional: false,
        SetMaxOnOverflow: true,
        prefix: '',
        placeholder:'0',
        nullable: false,
        positionCaretOnTab: true,
        shortcuts: null,
        enforceDigitsOnBlur: true,
        rightAlign: false,
        stripLeadingZeroes: false,