[InputMask React] Problem when decimal ',' (comma) pre-filled value with decimals

Forge Component
(1)
Published on 13 Jul (3 weeks ago) by João Barata
1 vote
Published on 13 Jul (3 weeks ago) by João Barata

Hi,

When the decimal is a ',' (comma) the component doesn't function when the input already has a value pre-filled with decimals.
By analyzing the javascript, the separation between integer and decimal is performed by radixPoint, this field is filled with a comma because it corresponds to the decimal field we want to use in the mask (DecimalSeparator) instead of separating by point '.' because it's the DB decimal.

Has anyone managed to solve this problem?

Hi,

After upgraded RobinHerbots/Inputmask library to 5.0.4 and add data-inputmask with value "'inputType': 'number'" the problem is solved.

This ops inputType doesn't exist in the 5.0.3.


Hugo Martins wrote:

Hi,

After upgraded RobinHerbots/Inputmask library to 5.0.4 and add data-inputmask with value "'inputType': 'number'" the problem is solved.

This ops inputType doesn't exist in the 5.0.3.


 Hi Hugo, does this problem still happens in the latest version of the component? I though I had fixed this exact problem in the latest releases. 


Regards 

 

Hi João,

It happens, an easy way to test is on the default ValueEU just change to 12000.34 and the input will ignore the . and insert 1200034.


Regards