inputmask-multi
inputmask-multi copied to clipboard
problem with android (Including demo) - recognize country after backspace
Hello,
I have issue with this on android devices (only when using android keyboard). When typing on android keyboard (e.g. 38160) it should recognize Serbian number and mask should be adapted for Serbian region. But it doesn't. It look like this:
and if i delete last number using backspace it turns out to be right:
I am using Samsung Galaxy S9, but problem is present on other android devices I tried too.
Also, When I connect android device to my mac book with USB, and debug android chrome remotely, problem occurs only when using android keyboard, when typing on mac book, everything works fine.
Can you advice how to fix this?
This problem is connected with events, generated by tapping keyboard. On the Android as I saw there is no event keypress
, only keydown
, but on others devices both of them keypress & keydown
are present.
See about it HERE->