jQuery-Mask-Plugin icon indicating copy to clipboard operation
jQuery-Mask-Plugin copied to clipboard

Repeated digits in Galaxy S7 Edge (Samsung Internet Browser)

Open GusAntoniassi opened this issue 7 years ago • 11 comments

Device

Samsung Galaxy S7 Edge with Android 7.0

Browser (and version)?

Samsung Internet Browser - Version 6.2.01.12

Functional jsfiddle exemplifying your problem:

It's just a simple input with the latest CDN version (1.14.13) https://jsfiddle.net/vygb834j/

Describe the problem depth:

After typing in three or more digits, they get repeated in the rest of the mask. For instance if I type: 123 the input's value becomes: 123.123 So far I've had this problem with Samsung Internet only, it works fine on Chrome.

Thanks in advance for your time and attention.

GusAntoniassi avatar Jan 03 '18 11:01 GusAntoniassi

I've been encountering this bug as well in Samsung Internet and in Chrome, although I cannot reproduce it in Chrome with your jsfiddle. HOWEVER the bug only occurs when using the default Samsung Keyboard. Tried with GBoard and Swiftkey and did not encounter the bug in any browser.

formaldehydeson avatar Mar 01 '18 17:03 formaldehydeson

Adding autocomplete="off" to the input fixes this issue

https://jsfiddle.net/vygb834j/12/

formaldehydeson avatar Mar 01 '18 20:03 formaldehydeson

@formaldehydeson that is really weird that you had to do that because this line: https://github.com/igorescobar/jQuery-Mask-Plugin/blob/master/src/jquery.mask.js#L438

Already does that o.O

igorescobar avatar Mar 02 '18 15:03 igorescobar

Is it possible that it's not getting applied in some cases?

https://jsfiddle.net/vvyyypw5/1/

formaldehydeson avatar Mar 02 '18 19:03 formaldehydeson

@formaldehydeson maybe in your case it isn't? xP

Can you help me to debug that? If you identify why this line isn't working for you would be great!

igorescobar avatar Mar 02 '18 19:03 igorescobar

Even in that JSFiddle I linked it doesn't look like it's being applied. And yeah haha let me look around and see if I can see what's causing it in my case, would like to help get this fixed as I'm a big fan of this plugin.

formaldehydeson avatar Mar 02 '18 19:03 formaldehydeson

@formaldehydeson news?

igorescobar avatar Mar 06 '18 14:03 igorescobar

Autonumeric project has the same problem!

alimo2 avatar Jul 01 '18 06:07 alimo2

I found the reason! It's because of samsung keyboard predictive text feature! turn it off, everything going as well! ;)

alimo2 avatar Jul 01 '18 08:07 alimo2

I experienced this exact same issue on iOS Safari with the Japanese keyboard. Turning off predictive text did not help.

elgertam avatar Nov 19 '19 16:11 elgertam

I have the same issue on iOS Safari with a Japanese keyboard.

alex-bukach avatar Nov 12 '22 17:11 alex-bukach