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

How to change "." for "," in percent input? #671

Closed
mkydouglas opened this issue Jan 24, 2020 · 5 comments
Closed

How to change "." for "," in percent input? #671

mkydouglas opened this issue Jan 24, 2020 · 5 comments

Comments

@mkydouglas
Copy link

Hey guys,
I'm using the input:
And when I type a fractional number show something like this: 1.5%
But I'm from Brazil and I need to change the dot for the comma, to show something like this: 1,5%

Is there any possibility to do that?

Anywhay, thanks a lot!

@ColinMorris83
Copy link
Contributor

I'm not sure this actually works how you expect even with a dot character at the moment
If you type 1.5 (on screen you would see 1.5%) I presume you would be expecting your actual value in the angular from control model to be 1.5 (1 point 5), however, the value stored in the model is actually 15

I think this may need clarification from the devs on expected behaviour of the percent mask

@henryKukk
Copy link

Hello,

Any news about this issue? Facing the same problem.

Kr,
Henry

@camp0sfer
Copy link

camp0sfer commented Feb 11, 2022

Facing the same problem.

I'm using mask="percent.2" but I need change "." for ","

@mlar1997
Copy link

I am facing the same issue - changing "." for ","

@andriikamaldinov1
Copy link
Collaborator

@mlar1997 @mkydouglas @camp0sfer @henryKukk @ColinMorris83
Thanks for your using Ngx-Mask. Please update to latest version.
It example, all work as expected - https://stackblitz.com/edit/angular-lkvxsb?file=src%2Fmain.ts

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

No branches or pull requests

8 participants