RobinHerbots / Inputmask

Input Mask plugin
https://robinherbots.github.io/Inputmask/
MIT License
6.4k stars 2.17k forks source link

Negative currency adds extra zero when digits set to 0 #1654

Open tQuant opened 7 years ago

tQuant commented 7 years ago
<input id="test" value="-1000">
jQuery("#test").inputmask({
  "alias":"currency",
  "prefix":"",
  "groupSeparator":" ",
  "digits":0,
  "rightAlign":false
});

This replace input value with: "-10 000"

andrea-spotsoftware commented 7 years ago

+1

altiusmxw commented 7 years ago

In case it's helpful, it looks like this issue was introduced in version 3.3.7.