[Custom Masks] Mask currency doesn't work on smartphone

[Custom Masks] Mask currency doesn't work on smartphone

  
Forge Component
(23)
Published on 7 Mar by Jogait
23 votes
Published on 7 Mar by Jogait

Hi,


I'm using the currency mask in an editable table. When I am on the computer it works correctly but when I access from my smartphone, I can not delete the contents of the input, because the backspace does not work, it is doubling the number instead of deleting it.

Hi Sofia,

Not entirely sure if it's the same issue, but...

Android browser does not handle very well the keycodes from the events such as keydown. And since the CustomMasks component uses keycodes to detect backspaces, deletes and others, maybe that's the reason why it does not work in your smartphone.

You can read it here (if you have the time :) : https://bugs.chromium.org/p/chromium/issues/detail?id=118639

If you do a search in google, there are a few solutions to specific situations.

Cheers,

José