Skip to content
This repository was archived by the owner on Sep 8, 2020. It is now read-only.

Android 4.4 / Backspace bug with certain masks #123

Open

Description

@burakicel

Hey, I am using UI mask on Android 4.4 (Kitkat) in an Ionic project.

Mask I am trying to run is "+1 (?9?9?9) ?9?9?9-?9?9?9?9" for the phone number. I did this because I want the country code to be pre-populated. What I noticed is that if I try backspacing on androids native keyboard when there is no input, I will get additional "1"s appended to my phone number. While all I pressed was the backspace button.

I confirmed the bug by also running the demo page on a Kitkat browser.

Activity

  1. lukepfeiffer10 commented on Feb 24, 2016

    @lukepfeiffer10
    Contributor

    Trying to look into this issue but I'm having issues getting an emulator running.

  2. lukepfeiffer10 commented on Feb 28, 2016

    @lukepfeiffer10
    Contributor

    @burakicel I'm working on getting a BrowserStack account up and running so that I can try and debug this issue.

  3. lukepfeiffer10 commented on Mar 1, 2016

    @lukepfeiffer10
    Contributor

    @burakicel I am trying to reproduce this bug using BrowserStack and a Galaxy S5 which is running 4.4 and not able to reproduce your issue. Are you sure you are using the latest version of the library? If so, is there any more information you can add to this that can help me replicate what you are seeing?

  4. burakicel commented on Mar 3, 2016

    @burakicel
    Author

    Hmm. When I noticed this bug, I was using an Android 4.4.2 (Nexus 7) emulator. As I mentioned, this bug also happened when I tried to run the demo page (https://htmlpreview.github.io/?https://github.com/angular-ui/ui-mask/master/demo/index.html) on the browser app. I am not sure if the demo page is using the latest version of UIMask. I will inspect this issue after work and hopefully provide some screenshots for you.

  5. erinzobitz commented on Apr 12, 2016

    @erinzobitz

    @lukepfeiffer10 I'm experiencing the same issue and you're able to reproduce it using the demo page. @burakicel is there any work around that you've found?

  6. lukepfeiffer10 commented on Apr 13, 2016

    @lukepfeiffer10
    Contributor

    @erinzobitz I was never able to reproduce this issue. If you could include more information or a short video/gif of what is happening I might be able to help.

  7. erinzobitz commented on Apr 13, 2016

    @erinzobitz

    Ok @lukepfeiffer10, video attached! Thanks for checking it out. I'm just on the demo page, using a Samsung Galaxy S4 with Android 4.4.2. You can see the cursor jumping around so you can put numbers in the order you intend, as well as backspace issues.

    Video.MOV.zip

  8. lukepfeiffer10 commented on Apr 13, 2016

    @lukepfeiffer10
    Contributor

    @erinzobitz First thing I would try is removing the input event from the eventsToHandle array (for android browsers). I meant to put a code snippet in the readme explaining this but haven't done that yet. It might be time for me to do that in the library for android browsers...

    Code snippet

    app.config(['uiMask.ConfigProvider', function(uiMaskConfigProvider) {
      if (android)
          uiMaskConfigProvider.eventsToHandle(['keyup', 'click', 'focus']);
    }
  9. erinzobitz commented on Apr 13, 2016

    @erinzobitz

    You rock @lukepfeiffer10! This fixed the issue. Backspace gets stuck at the dashes and you have to move the cursor to get where you want, but that seems to be another known issue.

  10. ivanovevgeny commented on Sep 22, 2016

    @ivanovevgeny

    Hi! Have the same issue with Android (6.0, 4.4.4).

    Video attached.

    bug.zip

  11. diogoorikassa commented on Mar 10, 2017

    @diogoorikassa

    I have observed this issue in Samsung devices (Note 4 and S7 Edge) with Samsung native keyboard, in others masks too.

  12. jdnichollsc commented on Apr 25, 2017

    @jdnichollsc

    @burakicel Guys, Does this mistake happen with Crosswalk?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions