ngx-mask
ngx-mask copied to clipboard
The decimal marker is automatically removed by deleting the leading amount
🐞 bug report
Is this a regression?
No, this behavior did not work in the previous version
Description
The problem exists with input fields for a currency amount. If all numbers before the decimal marker are deleted, the decimal marker is automatically removed and the former decimal amount is now the total amount.
🔬 Minimal Reproduction
It can be recreated on your documentation page (https://jsdaddy.github.io/ngx-mask/#2). I have used the "Separator leadZero" example.
- Input: 12.34
- Delete the numbers 1 and 2 before the decimal marker
- Actual: "34" remains in the field
- Target: ",34" should remain in the field and become 0,34 when leaving the field.
🌍 Your Environment
Angular Version:
Angular: 19.1.3 ngx-mask: 19.0.6