[InputMask React] Problem when decimal ',' (comma) pre-filled value with decimals
Question
Forge component 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

I used MaskedNumber in LoanAmount, not accepting more than hundred thousand value. 

MaskedNumber, MaskedPercentage not functioning properly.


Buds wrote:

I used MaskedNumber in LoanAmount, not accepting more than hundred thousand value. 

MaskedNumber, MaskedPercentage not functioning properly.


 Could you give a try with this component:

https://www.outsystems.com/forge/component-overview/7819/input-mask-reactive 


Vijay M-

 

Vijay Malviya wrote:

Buds wrote:

I used MaskedNumber in LoanAmount, not accepting more than hundred thousand value. 

MaskedNumber, MaskedPercentage not functioning properly.


 Could you give a try with this component:

https://www.outsystems.com/forge/component-overview/7819/input-mask-reactive 


Vijay M-

 

 

I tried that component, I can't type more than 4 digit in number mask

Hi João,

We currently have the same issue with the EU number format: when you pre-fill the field with a decimal value it ignores the decimals.

Regards,
Alfio Esposito

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.