RobinHerbots / Inputmask

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

Suffix vs prefix causing different maxlength #1254

Open DJPSystem opened 8 years ago

DJPSystem commented 8 years ago

I got an input text of numeric format that representing a currency field.

Depending on the language selected, the mask will use this prefix in english : 'prefix': '$' and this suffix in french : 'suffix': ' $'. Both input maxlength are set to 11.

In french I can input 100 000 000 but in english i'm stopped to $10,000,000. Look like the prefix was counted in the maxlength.

Here the code for the english version :

French version :

Any idea or suggestion?

RobinHerbots commented 8 years ago

@DJPSystem ,

I will investigate this.