Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Decimal options is ignore when I set decimal: '.' #149

Open
camp0sfer opened this issue Jul 31, 2020 · 0 comments
Open

Decimal options is ignore when I set decimal: '.' #149

camp0sfer opened this issue Jul 31, 2020 · 0 comments

Comments

@camp0sfer
Copy link

Hi there, I am using angular with ng2-currency-mask and want to implement decimal with '.' but it doesn't work :(

This is my code:
<input formControlName="example" matInput currencyMask [options]="{ prefix: '', decimal: '.', thousands: '.', precision: '6', allowNegative: true }" max="99" maxlength="10">

When I set decimal: '.' in the options and digit the value 111111111 on input, works visually (the input show the value 111.111111), but printing the value of my formcontrol I have the value 111111111

When I change the decimal for decimal: ',' the value of formcontrol is 111.111111

All I want is show 111.111111 on input and have the value 111.111111 in my formcontrol.

Sorry for my bad english, I hope someone can have a look and help me.
Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant