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

Currency formatting not updated supplied data #267

Closed
soupman99 opened this issue Dec 16, 2018 · 3 comments
Closed

Currency formatting not updated supplied data #267

soupman99 opened this issue Dec 16, 2018 · 3 comments

Comments

@soupman99
Copy link

soupman99 commented Dec 16, 2018

Great tool!

When I set mask="*0.00" and type in 125.00 my value is saved as 12500 which is correct. However, when I reload the page and data is pre-populated into the field the value in the form field reads 12500 not 125.00

Also, there should probably be a way to populate from the right. For instance

___.__
___._1
___.12
__1.25
_12.50
125.00

@Thegrep01
Copy link
Contributor

@soupman99 Because you save 12500 and mask does not know where put . , however if you use 000.00 mask will work correctly or you can use [dropSpecialCharacters]="false" and save 125.00

@Thegrep01 Thegrep01 removed the bug label Dec 20, 2018
@tcrite
Copy link

tcrite commented Mar 4, 2019

I agree with having ability to start typing from the right would be a nice to-have. A similar issue I'm having is if I pass in say, 6.3...I'd expect 6.30 to be displayed. Or, if I type in just 99, I'd expect it show 99.00. Instead I'm just getting the 6.3. I tried using masks of "000.00", "999.99", and "coma_separator.2"

@ValeriaKochegarova
Copy link
Contributor

@soupman99 you need set mask="0*.00" and add [dropSpecialCharacters]="false" that will work correct for your case

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

4 participants