When using browser with some specific locales (Lithuanian, Swedish, Norwegian at least). Ngx mask displays negative number as positive and overrides it's value on change as well.
To reproduce this issue change your browser's language to one of those listed above and run the stackblitz project (tested on chrome and firefox).
Anything else relevant?
this issue is present on ngx-mask@15.1.5 as well (not sure about earlier versions)
To reproduce this issue you have to change your browser language (can be found on Lithuanian, Norwegian, Swedish at least).
In the screenshot below I am showing issue on my firefox in Norwegian. I didn't test all other languages, but in English it works fine. Unfortunately, we can't force customers that use our project to use English.
Hi ngx-mask! π π π π π π π π π
π bug report
Is this a regression?
didn't find the version when this was working
Description
When using browser with some specific locales (Lithuanian, Swedish, Norwegian at least). Ngx mask displays negative number as positive and overrides it's value on change as well. To reproduce this issue change your browser's language to one of those listed above and run the stackblitz project (tested on chrome and firefox).
π¬ Minimal Reproduction
https://stackblitz.com/edit/ngx-mask-negative-numbers?file=src%2Fapp%2Fapp.component.ts
π Your Environment
Angular Version: 16.0.5
Anything else relevant? this issue is present on ngx-mask@15.1.5 as well (not sure about earlier versions)
To reproduce this issue you have to change your browser language (can be found on Lithuanian, Norwegian, Swedish at least). In the screenshot below I am showing issue on my firefox in Norwegian. I didn't test all other languages, but in English it works fine. Unfortunately, we can't force customers that use our project to use English.