Ngx-mask: Thousand separator with decimals at the same time

Created on 15 Apr 2019  路  4Comments  路  Source: JsDaddy/ngx-mask

Hello!
First of all thanks for this great mask tool!
I'm trying to use thousand separator with decimals at the same time, but facing a few problems.

I've tried a few different methods to achieve a certain result, but all of them have failed.

If i'm using 'separator' mask, i can't put decimals in input, but if i add '.2' or ',2' to the 'separator', input will freeze after 1 symbol.
There was another issue like that before => this one. And it was closed with reply that this functionality is added to this plugin, but i can't find a proper documentation on how to use that, and also when i opened test files, there is no case of checking if that is working correctly.

I've created a stackblitz, which can demonstrate the problem to you

  • @angular/common: 7.2.13
  • @angular/compiler: 7.2.13
  • @angular/core: 7.2.13
  • @angular/forms: 7.2.13
  • @angular/platform-browser: 7.2.13
  • @angular/platform-browser-dynamic: 7.2.13
  • @angular/router: 7.2.13
  • core-js: 2.6.5
  • ngx-mask: 7.9.2
  • rxjs: 6.4.0
  • zone.js: 0.9.0
P2 bug help wanted

Most helpful comment

I have the same problem.
If you use mask="separator." or mask="spearator.2" then only one character can be written into the input.

"@angular/animations": "^7.2.4",
"@angular/cdk": "^7.3.6",
"@angular/common": "^7.2.11",
"@angular/compiler": "^7.2.11",
"@angular/core": "^7.2.11",
"@angular/forms": "^7.2.11",
"@angular/http": "^7.2.11",
"@angular/material": "^7.3.6",
"@angular/platform-browser": "^7.2.11",
"@angular/platform-browser-dynamic": "^7.2.11",
"@angular/platform-server": "^7.2.11"

All 4 comments

I have the same problem.
If you use mask="separator." or mask="spearator.2" then only one character can be written into the input.

"@angular/animations": "^7.2.4",
"@angular/cdk": "^7.3.6",
"@angular/common": "^7.2.11",
"@angular/compiler": "^7.2.11",
"@angular/core": "^7.2.11",
"@angular/forms": "^7.2.11",
"@angular/http": "^7.2.11",
"@angular/material": "^7.3.6",
"@angular/platform-browser": "^7.2.11",
"@angular/platform-browser-dynamic": "^7.2.11",
"@angular/platform-server": "^7.2.11"

I fixed the problem locally, but i can't push changes to a new branch and create pull request because i don't have permissions.

'Remote: Permission to JsDaddy/ngx-mask.git denied to prosto-artem. unable to access 'https://github.com/JsDaddy/ngx-mask.git/': The requested URL returned error: 403'

@ValeriaKochegarova , @NepipenkoIgor, @Thegrep01

The problem has not gone.

When I use "dot_separator.2" all works fine, when i use "separator.2" I have error before I enter thousands.

I used version 8.0.0

440

Was this page helpful?
0 / 5 - 0 ratings

Related issues

cabbott65 picture cabbott65  路  4Comments

humpedli picture humpedli  路  3Comments

TimWarp picture TimWarp  路  4Comments

v1d3rm3 picture v1d3rm3  路  4Comments

dimmal picture dimmal  路  3Comments