[InputMask React] Is it possible to add negative numbers?
inputmask-react
Forge component by João Barata
Application Type
Reactive

Hello guys! How can we use this component with negative numbers? Is it possible?

Thanks.

mvp_badge
MVP

Hello Diogo,

Hope you are doing well :)

As far as I can tell, it is possible to use this component with negative numbers for MaskNumber and MaskCurrency masks.

Did you check the demo associated to this component? It may help you to understand the properties of the inputs and the mask itself.

I installed this demo in my personal area, if you want to try it, please go ahead:

https://rbarradas.outsystemscloud.com/InputMaskReactiveSample/Example


Hope that this helps you!


Kind regards,

Rui Barradas

Hello Rui! First of all thank you for the quick answer.

We have installed the demo in our dev environment and the issue is there. It does not happen when inputing negative number. It happens when rendering negative numbers with decimals. Please check the bellow print screen.


The configurations for the input are the ones that were originally made on the demo app (no changes). The only thing that i've changed was the initial value for the variable that olds the currency value (instead of 1500 it is now -15.01). Any clue on this one?

Thanks again,

Diogo Pacheco

Thanks for reporting this, I'll try to take a look at this and hopefully will be able to provide a fix in a new version of the component.

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