Input stuck after the first digit with dot_separator or comma_separator
See original GitHub issueWhen uses the dot_separator or comma_separator, the input stuck after the first digit.
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:
- Created 4 years ago
- Comments:5 (1 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
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.
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