question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Input is duplicated and reversed on devices with Android < 7.0

See original GitHub issue

Expected behavior

Entering 123 should format the input to 123 €

Actual behavior

Entering 123 resulted in 123.321 € on SAMSUNG GALAXY S5 (Android 6.0.1, Chrome v61) Entering 123 resulted in 12.321 € on HTC ONE (Android 5.0.2, Chrome v61)

Steps to reproduce the problem

  1. I tested this using autoNumeric v4.1.0and the browser Chrome version 61 on Android 6.0.1 and Android 5.0.2,
  2. I used the example from http://autonumeric.org

I’ve had no problems with autoNumeric on devices using Android > v7.0.

Best regards, J.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:38 (21 by maintainers)

github_iconTop GitHub Comments

3reactions
JanThielcommented, Nov 16, 2017

Hi @danielmuehlbacher We currently faced the same issue but were finally able to pinpoint the source of it and why it only happens with Samsung Devices.

The issue is caused by the Samsung Keyboard Autocorrect Feature (“Text suggestions”). Credits to this finding goes to the Angular Community: https://github.com/assisrafael/angular-input-masks/issues/104

If you disable this Samsung Feature, the autoNumeric works as expected. As a more clean workaround (which does not require user interaction to globally disable the feature) it works, if you add this to the field which uses autoNumeric:

autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false"

This disables the Samsung autocomplete feature.

No chance for a beauty award, but a reliable solution…

Best Regards,

Jan

2reactions
AlexandreBonneaucommented, Feb 12, 2018

Magic! :godmode:

:trollface:

Read more comments on GitHub >

github_iconTop Results From Across the Web

Browser input fields duplicated on focus ... - Issue Tracker
Issue: The stock browser in Android 4 (Ice Cream Sandwich) will create a duplicate of an input field when focused. When this field...
Read more >
duplicate and incorrect characters inside input text field (after ...
I'm having a very similar issue on android 6.0 on a samsung device, using react + cordova. I'd type 123@1 , backspace twice...
Read more >
Android 7.0, (N) Compatibility Definition
Introduction. This document enumerates the requirements that must be met in order for devices to be compatible with Android 7.0.
Read more >
Migrate your existing splash screen implementation to Android ...
If your existing splash screen is implemented using a dedicated Activity , launching your app on devices running Android 12 or higher results...
Read more >
Copy and Paste | Android Developers
To avoid duplicate displays of information, we strongly recommend removing any pop-up widget shown after an in-app copy for Android 13 and higher....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found