Skip to content

Starting zeros are removed to fastΒ #382

@PCOSFS

Description

@PCOSFS

Vue Currency Input version

v1.22.6

Vue version

v2.6.14

What browser are you using?

Chrome

What operating system are you using?

Windows

Reproduction link

https://vue-currency-input-v1.netlify.app/playground/

Describe your issue

When I want to remove the first digit of a number with zeros after it, all zeros are immediately removed so it is not easy to just replace the first digit of a number.

Ex :
I have 1001 in my input and if I remove the first "1" (to replace it by a "2" for example) my input value is immediatly replaced by "1" (without the firsts zeros).
See the attached GIF.
chrome_AohL0IhjkR

Note that the last version of the vue currency input playground (v3.0.4) has the same behaviour.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions