[Simple Currency Input] Entering a comma removes the 0s after comma

[Simple Currency Input] Entering a comma removes the 0s after comma

  
Forge Component
(13)
Published on 8 Aug by César Santos
13 votes
Published on 8 Aug by César Santos

Hi, 

a client has commented that if they add a comma in the value ie 250,000 it treats the comma as a decimal and removes the 0s so leaving £250.

I have set the following properties:

decimals: 0

decmial sep: " "

thousands sep: ","

currency symbol: "£"

currencylefttovalue: True

removemaskonfocus: True

I've tried making the input field both text and number

Am i missing anything?

Debra 




It looks alright, but is it a good idea to have " " as decimal separator? I would use the . at least.

Thanks for the quick response. I have tried that but it still does the same. It does the same in your sample app too as far as i can tell.

Debra

I've tested the component and got the same result. Based on the number of downloads I find very strange that the problem wasn't reported before.