coma_separator with 4 decimals does not work
When I comma_separator defining 2 decimals, everything works like a charm, but if I need 4 decimals, mask works ok, but the form returns the value without any decimal.
e.g.
If I write 1,000.2523, the form control will store 10002523 as its value.
Could this be related to #302 ?
I think so.
@galan83 you can grab the latest version of ngx-mask which solves this issue
Hi again, thank you for your answers. I'm using last version of the library: 7.4.2
I've seen this in mask.service.ts:
if ((this.maskExpression === 'coma_separator.2' && this.dropSpecialCharacters === true)) {
this.maskSpecialCharacters = this.maskSpecialCharacters.filter((item: string) => item !== '.');
}
I think that hardcoded 2 is the problem.
When I look at it, I think it should be comma instead of coma https://en.wikipedia.org/wiki/Comma
When this gone to publish I still have this problem 🐞 , at 7.4.3