jaridmargolin / formatter.js

Format html inputs to match a specified pattern
http://firstopinion.github.io/formatter.js
2.48k stars 235 forks source link

Unusable in the latest mobile Chrome #48

Open th0r opened 10 years ago

th0r commented 10 years ago

Try this fiddle in mobile Chrome 34 under Android (haven't tested on iOS). Only digits are allowed, but you can input anything there and the input mask is not replaced, but just shifts as user inputs. Formatter version is 0.1.4. Code of this fiddle: http://jsfiddle.net/th0r/FAH8u/

jaridmargolin commented 10 years ago

Working correctly in chrome v34.0.1847.18 on iOS 7.1.1 Will investigate Android as soon as possible. Android problems also reported here: #34

th0r commented 10 years ago

I confirm that everything works fine on iOS. A little more info about by current phone: it's LG Optimus G with Android 4.1.2. Keyboard is SwiftKey. I've tried to change it to the LG's default one and I can still input letters with it, but the shifting bug has disappeared.

Atombath commented 10 years ago

I was able to reproduce this issue using Chrome 35.0.1916.141 on Android 4.2.2.

jaridmargolin commented 10 years ago

Could move tests to selenium for increased accuracy. Right now the tests use mock keyboard events that I have manually recorded.

On a side note, it is great to have these bugs reported, but realistically I do not have the time to fix them all. It would be greatly appreciated if the authors consuming the library could help further in debugging.

kot-lex commented 10 years ago

Chrome on Android has a serious bug with keyboard events https://code.google.com/p/chromium/issues/detail?id=118639 For some reason event.keyCode always equals '0'

pyrotechr commented 7 years ago

i know this issue is from 2 yrs ago but is there a fix for this on mobile?

edtsz commented 7 years ago

Hi guys, I have this issue too, but looking for other issues I found this #81 , and the solution there, by @damirsel worked very well for me.