Wrong autogroup and RangeError using negative decimal
Author: AthosXtremeCreated Mar 16, 2021Updated Sep 18, 2026
This fiddle uses decimal digits, custom separators and currency prefix. In this case the min limit is -4000 with 3 decimal places. If you try to type -3578965 (expecting "-$3.578,965") it ends masking "-$3.5,789", blocking before finish and masking to an invalid number notation. The alternative operation is to manually type the decimal separator, so, you can try to type -3578,965 which raises "Uncaught RangeError: Maximum call stack size exceeded"; however, the masking is correct.
- Fiddle: https://jsfiddle.net/x0ba9mu4/
- Windows 10 - Chrome 89 - Inputmask 5.0.6-beta.44
Source: RobinHerbots/Inputmask