17
Views
6
Comments
[InputMask React] Input jumps when deleting decimal point
Question
Forge component by João Barata
2
Published on 13 Jul 2020

I have the same issue with the link below. The solution is stated in the link.

https://stackoverflow.com/questions/42120888/react-controlled-number-input-jumps-when-deleting-decimal-point


I need help on how to implement the solution for this. I am using this mask in mobile. Thank you

Rank: #203

Jan, 

If you go to your  plugin module, in the extensibility configurations, you can set the target version...

Like this:


Check only if the version is available in the github if you are using github.

And also try to update the component from forge first, maybe there is a version that this problem were already corrected.


Cheers and Regards,

RR :)

Rank: #203

Hi Nivaldo,

Sorry!! You are right.

I saw the link from stack overflow Jan sent and thought it was a mobile plugin.

This is a Reactive Web App...
in this case all you have to do is change the JS code...


Check in the github that it was based if there is any update: https://github.com/RobinHerbots/Inputmask

The version that the plugin is based is 5.0.3

Rank: #203

If you are getting a hard time finding the files from github that were used in the component they are here, it is from the latest stable versions... 5.0.5

Just don't change the InputMaskAuxFuncitons files, since they are some custom functions for what I saw


Let me know if it helped. :)
Cheers

Rank: #203

Guys,

Just did the change and attached the .oml, this one is targeting the last version of plugin, see if it helps somehow...

Unfortunately I don't think it will solve the problem.

Reading with more time now, I realized that in the link Jan sent, the problem was in the version of the React itself and not in the plugin version...


I'm really sorry I should have read more calmly.

InputMaskReact.oml

Rank: #742

Jan Patricia Espina wrote:

I have the same issue with the link below. The solution is stated in the link.

https://stackoverflow.com/questions/42120888/react-controlled-number-input-jumps-when-deleting-decimal-point


I need help on how to implement the solution for this. I am using this mask in mobile. Thank you

 Hi Jan, 

I had/have the same problem and the "workaround" to solve it was to put a space " " (not "" but " ") in the PrefixText of the MaskCurrency

Hope this solves your problem too.

Regards,