Skip to content

Deleting 5 after entering say 500 causes everything to be deleted #1355

Open
@tedp

Description

@tedp

🐞 bug report

Is this a regression?

Not sure

Description

Deleting first number where the number is in the hundreds causes the whole number to be deleted apart from 0. This is not the case for example where the number is in the thousands

🔬 Minimal Reproduction

Using your own example https://jsdaddy.github.io/ngx-mask/#1 where the mask is set to 'separator.2' for example, enter the number 500 then delete the first number 5. You will see that the whole number is deleted leaving just 0.

If you try the same for 5000 then only the number 5 is deleted as expected

Also if you try 555 and delete the first 5 then this also works as expected

Anything else relevant?

I've tried in both Chrome and Edge on a Mac

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions