question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Input stuck after the first digit with dot_separator or comma_separator

See original GitHub issue

When uses the dot_separator or comma_separator, the input stuck after the first digit.

issue-ng-mask

Code in template: <div class="input-group col-sm-3"> <input formControlName="ce" type="text" mask="dot_separator" class="form-control input-sm" /> <div class="input-group-addon"> % </div> </div>

I imported the module with the forRoot() method (Without the optional parameter).

I’m using angular 7.2.0 with ngx-mask 8.2.0

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
josevjuniorcommented, Oct 22, 2019

I found a resolution for my problem. I had to use the decimalMarker with thousandSeparador.

<input formControlName="ce" type="text" mask="separator" decimalMarker="," thousandSeparator="." class="form-control input-sm" />

Too bad this information is not in the documentation. I had to look in the source code.

2reactions
tienuitcommented, Oct 22, 2019

The readme file is now out of date. You can use: mask="separator" thousandSeparator="," Please see this link: https://stackblitz.com/edit/ngx-mask-currency-example

Read more comments on GitHub >

github_iconTop Results From Across the Web

Allowing/replacing comma as number separator for input type ...
I tried to replace the comma with a "." using javascript, but it seems that for number input field, I can't get the...
Read more >
Solved: Decimal separator missing when importing data
I'm stuck with a very annoying issue - when I import data via an ODBC driver (connected to ERP software called Microsoft XAL),...
Read more >
Solved: Format decimal numbers - Power Platform Community
You need to adjust the format in function of what you're using as decimal separator in German locale. If it is the comma,...
Read more >
Custom Excel number format - Ablebits
To create an Excel custom number format with a thousands separator, include a comma (,) in the format code. For example:.
Read more >
Changing Regional Setting in Windows (CSV imports)
Click Additional Settings; For Decimal Symbol, enter a dot: . For List Separator, enter a comma: ,. Now, when you open a CSV...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found